From 1af3b8e10022323769a7080532a9a89f907407c6 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 11 Dec 2008 19:01:47 +0000 Subject: 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. --- themes/default/js/ui.init.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'themes/default/js/ui.init.js') 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 */ -- cgit v1.2.3