smooth initial loading of menu, thanks to craq for the tip

This commit is contained in:
Ted Serbinski 2007-01-10 06:13:00 +00:00
parent 0c661bcbd4
commit 1ed6151591
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ left:0;
position:static;
top:0;
width:100%;
height:22px;
}
ul#menubar li {

View File

@ -5,7 +5,7 @@ $(document).ready(function() {
var basePath = Drupal.settings.menu_bar.basePath;
// insert extra <br /> so menu doesn't overlap theme
$('body').prepend('<ul id="menubar" class="clear-block"></ul>');
$('<ul id="menubar" class="clear-block"></ul>').prependTo('body').slideDown(400);
// Drupal menu callback
$('#menubar').load(basePath + 'menu_bar/menu', function() {