summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmburnz2013-03-09 12:12:14 (GMT)
committer jmburnz2013-03-09 12:12:14 (GMT)
commite2cfdeaa3895684c014f14ddf0c6d9ef4246b32f (patch)
tree86ad5b7e8aa80441733687a1584a7f0a72c51b5c
parentddf445b3dd3f132e59e2d195fbf50795b1ed462d (diff)
update menu toggle
change load order of matchMedia polyfills, change speed of the toggle to 100 - faster than fast
-rwxr-xr-xat_core/inc/load.inc2
-rwxr-xr-xat_core/scripts/menu-toggle.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/at_core/inc/load.inc b/at_core/inc/load.inc
index 6080029..8e8640a 100755
--- a/at_core/inc/load.inc
+++ b/at_core/inc/load.inc
@@ -341,8 +341,8 @@ function at_load_polyfills($theme_name) {
$polyfills_array['all'][] = 'scripts/onmediaquery.js';
}
if (at_get_setting('load_matchmediajs') === 1) {
- $polyfills_array['all'][] = 'scripts/matchMedia.addListener.js';
$polyfills_array['all'][] = 'scripts/matchMedia.js';
+ $polyfills_array['all'][] = 'scripts/matchMedia.addListener.js';
}
// Load Polyfills
diff --git a/at_core/scripts/menu-toggle.js b/at_core/scripts/menu-toggle.js
index 38ee53a..5e94962 100755
--- a/at_core/scripts/menu-toggle.js
+++ b/at_core/scripts/menu-toggle.js
@@ -36,7 +36,7 @@
// Toggle menus open or closed
$(".at-menu-toggle-button-link").click(function() {
- $(this).parent().next().slideToggle('fast');
+ $(this).parent().next().slideToggle(100, 'swing');
return false;
});