From 6a76302ce54d0d080f3ae12f00f64acf18fa8614 Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 27 May 2015 11:59:12 -0400 Subject: [PATCH] Remove fallback js animations from modal --- src/definitions/modules/modal.js | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) 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); } } },