commit
614505780b
|
@ -149,7 +149,7 @@ define([
|
|||
timerId = 0;
|
||||
}
|
||||
if (ownerEl && ownerEl.ismasked) {
|
||||
if (ownerEl.closest('.asc-window.modal').length==0)
|
||||
if (ownerEl.closest('.asc-window.modal').length==0 && !Common.Utils.ModalWindow.isVisible())
|
||||
Common.util.Shortcuts.resumeEvents();
|
||||
|
||||
maskeEl && maskeEl.remove();
|
||||
|
|
|
@ -803,7 +803,7 @@ define([
|
|||
}
|
||||
}
|
||||
|
||||
Common.NotificationCenter.trigger('modal:close', this);
|
||||
Common.NotificationCenter.trigger('modal:close', this, hide_mask);
|
||||
}
|
||||
|
||||
this.$window.remove();
|
||||
|
@ -843,7 +843,7 @@ define([
|
|||
}
|
||||
}
|
||||
}
|
||||
Common.NotificationCenter.trigger('modal:hide', this);
|
||||
Common.NotificationCenter.trigger('modal:hide', this, hide_mask);
|
||||
}
|
||||
this.$window.hide();
|
||||
this.$window.removeClass('notransform');
|
||||
|
|
|
@ -99,11 +99,11 @@ Common.util = Common.util||{};
|
|||
'modal:show': function(e){
|
||||
window.key.suspend();
|
||||
},
|
||||
'modal:close': function(e) {
|
||||
window.key.resume();
|
||||
'modal:close': function(e, last) {
|
||||
last && window.key.resume();
|
||||
},
|
||||
'modal:hide': function(e) {
|
||||
window.key.resume();
|
||||
'modal:hide': function(e, last) {
|
||||
last && window.key.resume();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue