summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-13 20:44:13 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-13 20:44:13 -0700
commit6b01022a97e5fbd30d8f9a14b785e3e25ec7c2d4 (patch)
tree27def91a3238c4db9cc16ead9cb8366cd4e18b6f /themes
parentdb0966a9bce0396b0c98f3532bca8613f77cdb05 (diff)
Hide the admin menu and show it after it's loaded to minimize flicker.
Normalize the comment text about this interaction between admin_wind and wind.
Diffstat (limited to 'themes')
-rw-r--r--themes/admin_wind/views/admin.html.php4
-rw-r--r--themes/wind/views/page.html.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/themes/admin_wind/views/admin.html.php b/themes/admin_wind/views/admin.html.php
index ff7b930f..f9ef18c7 100644
--- a/themes/admin_wind/views/admin.html.php
+++ b/themes/admin_wind/views/admin.html.php
@@ -53,9 +53,11 @@
&larr; <?= t("back to the ...") ?>
</a>
<?= $theme->user_menu() ?>
- <div id="g-site-admin-menu" class="ui-helper-clearfix">
+ <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
+ <div id="g-site-admin-menu" class="ui-helper-clearfix" style="visibility: hidden">
<?= $theme->admin_menu() ?>
</div>
+ <script type="text/javascript"> $(document).ready(function() { $("#g-site-admin-menu").css("visibility", "visible"); }) </script>
<?= $theme->admin_header_bottom() ?>
</div>
<div id="bd">
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php
index 4cc949ce..6ce2a559 100644
--- a/themes/wind/views/page.html.php
+++ b/themes/wind/views/page.html.php
@@ -87,7 +87,7 @@
<?= $theme->user_menu() ?>
<?= $theme->header_top() ?>
- <!-- hide the menu and make it visible after the page has loaded, to minimize menu flicker -->
+ <!-- hide the menu until after the page has loaded, to minimize menu flicker -->
<div id="g-site-menu" style="visibility: hidden">
<?= $theme->site_menu($theme->item() ? "#g-item-id-{$theme->item()->id}" : "") ?>
</div>