diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-10-16 00:54:20 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-10-16 00:54:20 -0600 |
commit | 568017d8ccd230a5075a5b3e02654e129b4929d0 (patch) | |
tree | 80d0688bbd529eafdfb15786648ff9b74a36e276 /themes/wind/js | |
parent | c876ec1f500c605f58c7e70c4d0a3c6f8787df71 (diff) |
Deal with IE flicker during Superfish menu init solely in ui.init.js with .hide() and .show(). Since the menus in the header are the only SF menus, use those selectors for initialization.
Diffstat (limited to 'themes/wind/js')
-rw-r--r-- | themes/wind/js/ui.init.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index 357e6081..f45ba84a 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -1,20 +1,20 @@ /** - * Initialize jQuery UI and Gallery Plugin elements + * Initialize jQuery UI and Gallery Plugins */ $(document).ready(function() { - // Initialize Superfish menus - $("ul.g-menu").addClass("sf-menu"); - $('ul.sf-menu').superfish({ + // Initialize Superfish menus (hidden, then shown to address IE issue) + $("#g-site-menu .g-menu").hide().addClass("sf-menu"); + $("#g-site-menu .g-menu").superfish({ delay: 500, animation: { opacity:'show', height:'show' }, + pathClass: "g-selected", speed: 'fast' - }); - $("#g-site-menu").css("display", "block"); + }).show(); // Initialize status message effects $("#g-action-status li").gallery_show_message(); @@ -23,7 +23,7 @@ $(document).ready(function() { $("#g-login-link").addClass("g-dialog-link"); $(".g-dialog-link").gallery_dialog(); - // Apply jQuery UI button css to submit inputs + // Apply jQuery UI icon, hover, and rounded corner styles $(".g-short-form input[type=text]").addClass("ui-corner-left"); $(".g-short-form input[type=submit]").addClass("ui-state-default ui-corner-right"); $("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all"); @@ -32,7 +32,7 @@ $(document).ready(function() { $("#g-view-menu a").addClass("ui-icon"); } - // Apply styles and icon classes to g-context-menu + // Apply jQuery UI icon and hover styles to context menus if ($(".g-context-menu").length) { $(".g-context-menu li").addClass("ui-state-default"); $(".g-context-menu a").addClass("g-button ui-icon-left"); |