src/glkote/dialog.js
/* Event handler: The "Cancel" button.

   This can mean either cancelling the dialog, or cancelling confirm mode on a
   "do you want to replace that?" query.
*/
Event handler: The "Cancel" button.
This can mean either cancelling the dialog, or cancelling confirm mode on a
"do you want to replace that?" query.
Event handler : The " Cancel " button . This can mean either cancelling the dialog or cancelling confirm mode on a " do you want to replace that? " query .
function evhan_cancel_button(ev) {
    ev.preventDefault();
    if (!is_open)
        return false;
    if (confirming) {
        confirming = false;
        set_caption(null, false);
        var fel = $('#'+dialog_el_id+'_infield');
        fel.prop('disabled', false);
        var butel = $('#'+dialog_el_id+'_accept');
        butel.prop('disabled', false);
        butel.text('Save');
        return false;
    }
    var callback = dialog_callback;
    dialog_close();
    if (callback)
        callback(null);
    return false;
}
function evhan_cancel_button ( ev ) { ev . preventDefault ( ) ; if ( ! is_open ) return false ; if ( confirming ) { confirming = false ; set_caption ( null , false ) ; var fel = $ ( '#' + dialog_el_id + '_infield' ) ; fel . prop ( 'disabled' , false ) ; var butel = $ ( '#' + dialog_el_id + '_accept' ) ; butel . prop ( 'disabled' , false ) ; butel . text ( 'Save' ) ; return false ; } var callback = dialog_callback ; dialog_close ( ) ; if ( callback ) callback ( null ) ; return false ; }
Event handler: The "Cancel" button.
Event handler : The " Cancel " button .
//GlkOte.log('### cancel');