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. --- core/js/menu.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 core/js/menu.js (limited to 'core/js') diff --git a/core/js/menu.js b/core/js/menu.js deleted file mode 100644 index 7ca166e7..00000000 --- a/core/js/menu.js +++ /dev/null @@ -1,21 +0,0 @@ -$("document").ready(function() { - $("#gSiteMenu ul:not(:first)").css("display", "none"); - $("#gSiteMenu li").mouseover(function (ev) { - $(this).children("ul").css("display", "block"); - $(this).children("ul").find("li").css("clear", "both"); - - this.dropdown_open = true; - }); - $("#gSiteMenu li").mouseout(function (ev) { - $(this).children("ul").css("display", "none"); - this.dropdown_open = false; - }); - - $("#gSiteMenu li a").click(function () { - var href = $(this).attr("href"); - if (href == "#") { - return false; - } - return true; - }); -}); -- cgit v1.2.3