diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 4aecbbfa3..6bc0092c7 100644 --- a/src/definitions/modules/modal.js +++ b/src/definitions/modules/modal.js @@ -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); } } },