diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 22:52:01 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 22:52:01 +0000 |
commit | bcea2a6228f8d8f4047f416b1e2174b0bd5e3479 (patch) | |
tree | f7277922750e21dc005450df737a444141c038c6 /themes/default/js/ui.init.js | |
parent | d04dbadfa1c9a2ed6823ac2ffd64d8f68f27581c (diff) |
Hide the menu until we can superfish it so that we don't see the
unstyled list appear which causes the page layout to flicker.
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 15815c70..3c6ca777 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -23,6 +23,7 @@ $(document).ready(function() { }, speed: 'fast' }); + $("#gSiteMenu").css("display", "block"); // Round view menu buttons if ($("#gViewMenu").length) { @@ -36,7 +37,7 @@ $(document).ready(function() { handleShortFormEvent(shortForms); $(".gShortForm input[type=text]").addClass("ui-corner-left"); $(".gShortForm input[type=submit]").addClass("ui-state-default ui-corner-right"); - + // Apply jQuery UI button css to submit inputs $("input[type=submit]:not(.gShortForm input)").addClass("ui-state-default ui-corner-all"); @@ -81,12 +82,12 @@ $(document).ready(function() { // Add hover state for buttons $(".ui-state-default").hover( - function(){ - $(this).addClass("ui-state-hover"); - }, - function(){ - $(this).removeClass("ui-state-hover"); - } + function(){ + $(this).addClass("ui-state-hover"); + }, + function(){ + $(this).removeClass("ui-state-hover"); + } ); }); |