Browse Source

Fixes bug in modal hide, dimmer not hiding

pull/1465/merge
jlukic 10 years ago
parent
commit
042e6c93cc
1 changed files with 9 additions and 8 deletions
  1. 17
      src/definitions/modules/modal.js

17
src/definitions/modules/modal.js

@ -411,16 +411,17 @@ $.fn.modal = function(parameters) {
hideDimmer: function() {
if( $dimmable.dimmer('is animating') || ($dimmable.dimmer('is active')) ) {
$dimmable.dimmer('hide', function() {
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
module.remove.clickaway();
module.remove.screenHeight();
}
});
}
else {
module.debug('Dimmer is not visible cannot hide');
return;
}
module.debug('Hiding dimmer');
$dimmable.dimmer('hide', function() {
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
module.remove.clickaway();
module.remove.screenHeight();
}
});
},
hideAll: function(callback) {
@ -803,7 +804,7 @@ $.fn.modal.settings = {
name : 'Modal',
namespace : 'modal',
debug : false,
debug : true,
verbose : true,
performance : true,

Loading…
Cancel
Save