diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-11 19:01:47 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-11 19:01:47 +0000 |
commit | 1af3b8e10022323769a7080532a9a89f907407c6 (patch) | |
tree | 0da1753381d797c4f14c6ae4f2e977c0d0731bbe /themes/default/js/ui.init.js | |
parent | f3d40c02ecdf061a21e877e03e6c91d9b6c4b2c9 (diff) |
Changes to the Menu.php:
1) separate the classes that are generated by the Menu class from what is used for the rendering. The classes that are generated are gMenu, gMenuElement, and gMenuDialog for the Menu, Menu_Element and MenuDialog classes respectively.
2) Changed the ui.init.js to add the appropriate rendering classes to the above classes. All gMenu elements have the sf-menu class added. All elements of class gMenuDialog have the gDialogLink class added.
3) Use Superfish for the menus so they now float properly.
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 93994664..a131421b 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -3,6 +3,9 @@ */ $("document").ready(function() { + $(".gMenuLink").addClass("gDialogLink"); + $("ul.gMenu").addClass("sf-menu"); + /** * Superfish menu options */ |