|
@ -345,7 +345,9 @@ $.fn.modal = function(parameters) { |
|
|
useFailSafe : true, |
|
|
useFailSafe : true, |
|
|
onComplete : function() { |
|
|
onComplete : function() { |
|
|
settings.onVisible.apply(element); |
|
|
settings.onVisible.apply(element); |
|
|
module.add.keyboardShortcuts(); |
|
|
|
|
|
|
|
|
if(settings.keyboardShortcuts) { |
|
|
|
|
|
module.add.keyboardShortcuts(); |
|
|
|
|
|
} |
|
|
module.save.focus(); |
|
|
module.save.focus(); |
|
|
module.set.active(); |
|
|
module.set.active(); |
|
|
if(settings.autofocus) { |
|
|
if(settings.autofocus) { |
|
@ -391,7 +393,9 @@ $.fn.modal = function(parameters) { |
|
|
if(!module.others.active() && !keepDimmed) { |
|
|
if(!module.others.active() && !keepDimmed) { |
|
|
module.hideDimmer(); |
|
|
module.hideDimmer(); |
|
|
} |
|
|
} |
|
|
module.remove.keyboardShortcuts(); |
|
|
|
|
|
|
|
|
if(settings.keyboardShortcuts) { |
|
|
|
|
|
module.remove.keyboardShortcuts(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
onComplete : function() { |
|
|
onComplete : function() { |
|
|
settings.onHidden.call(element); |
|
|
settings.onHidden.call(element); |
|
@ -854,6 +858,8 @@ $.fn.modal.settings = { |
|
|
useCSS : true |
|
|
useCSS : true |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// whether to use keyboard shortcuts
|
|
|
|
|
|
keyboardShortcuts: true, |
|
|
|
|
|
|
|
|
context : 'body', |
|
|
context : 'body', |
|
|
|
|
|
|
|
|