src/glkote/dialog.js
/* Event handler: The user has changed which entry in the selection box is
   highlighted. (Also called manually, when we enter edit mode.)

   This is only used in edit mode.
*/
Event handler: The user has changed which entry in the selection box is
highlighted. (Also called manually, when we enter edit mode.)

This is only used in edit mode.
Event handler : The user has changed which entry in the selection box is highlighted . ( Also called manually when we enter edit mode . ) This is only used in edit mode .
function evhan_select_change_editing() {
    if (!is_open)
        return false;
    if (!editing || editing_dirent)
        return false;
    var butel = $('#'+dialog_el_id+'_delete');
    butel.prop('disabled', true);
    butel = $('#'+dialog_el_id+'_display');
    butel.prop('disabled', true);
    var selel = $('#'+dialog_el_id+'_select');
    if (!selel.length)
        return false;
    var pos = selel.prop('selectedIndex');
    if (!cur_filelist || pos < 0 || pos >= cur_filelist.length)
        return false;
    var file = cur_filelist[pos];
    if (!file || !file.dirent || !file_ref_exists(file.dirent))
        return false;
    butel = $('#'+dialog_el_id+'_delete');
    butel.prop('disabled', false);
    butel = $('#'+dialog_el_id+'_display');
    butel.prop('disabled', false);
}
function evhan_select_change_editing ( ) { if ( ! is_open ) return false ; if ( ! editing || editing_dirent ) return false ; var butel = $ ( '#' + dialog_el_id + '_delete' ) ; butel . prop ( 'disabled' , true ) ; butel = $ ( '#' + dialog_el_id + '_display' ) ; butel . prop ( 'disabled' , true ) ; var selel = $ ( '#' + dialog_el_id + '_select' ) ; if ( ! selel . length ) return false ; var pos = selel . prop ( 'selectedIndex' ) ; if ( ! cur_filelist || pos < 0 || pos >= cur_filelist . length ) return false ; var file = cur_filelist [ pos ] ; if ( ! file || ! file . dirent || ! file_ref_exists ( file . dirent ) ) return false ; butel = $ ( '#' + dialog_el_id + '_delete' ) ; butel . prop ( 'disabled' , false ) ; butel = $ ( '#' + dialog_el_id + '_display' ) ; butel . prop ( 'disabled' , false ) ; }
Event handler: The user has changed which entry in the selection box is
highlighted.
Event handler : The user has changed which entry in the selection box is highlighted .