|
|
@ -349,16 +349,7 @@ $.fn.modal = function(parameters) { |
|
|
|
; |
|
|
|
} |
|
|
|
else { |
|
|
|
module.debug('Showing modal with javascript'); |
|
|
|
$module |
|
|
|
.fadeIn(settings.duration, settings.easing, function() { |
|
|
|
settings.onVisible.apply(element); |
|
|
|
module.add.keyboardShortcuts(); |
|
|
|
module.save.focus(); |
|
|
|
module.set.active(); |
|
|
|
callback(); |
|
|
|
}) |
|
|
|
; |
|
|
|
module.error(error.noTransition); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -400,18 +391,7 @@ $.fn.modal = function(parameters) { |
|
|
|
; |
|
|
|
} |
|
|
|
else { |
|
|
|
module.remove.active(); |
|
|
|
if( !module.othersActive() ) { |
|
|
|
module.hideDimmer(); |
|
|
|
} |
|
|
|
module.remove.keyboardShortcuts(); |
|
|
|
$module |
|
|
|
.fadeOut(settings.duration, settings.easing, function() { |
|
|
|
settings.onHidden.call(element); |
|
|
|
module.restore.focus(); |
|
|
|
callback(); |
|
|
|
}) |
|
|
|
; |
|
|
|
module.error(error.noTransition); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|