svn commit: r746171 - in /ofbiz/trunk/themes/bluelight: data/BlueLightThemeData.xml webapp/bluelight/dropdown.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r746171 - in /ofbiz/trunk/themes/bluelight: data/BlueLightThemeData.xml webapp/bluelight/dropdown.js

jonesde
Author: jonesde
Date: Fri Feb 20 06:57:44 2009
New Revision: 746171

URL: http://svn.apache.org/viewvc?rev=746171&view=rev
Log:
Applied patch from Ryan Foster to fix issues with bluelight theme, especially in IE; part of Jira #OFBIZ-2197

Added:
    ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js   (with props)
Modified:
    ofbiz/trunk/themes/bluelight/data/BlueLightThemeData.xml

Modified: ofbiz/trunk/themes/bluelight/data/BlueLightThemeData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/data/BlueLightThemeData.xml?rev=746171&r1=746170&r2=746171&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/data/BlueLightThemeData.xml (original)
+++ ofbiz/trunk/themes/bluelight/data/BlueLightThemeData.xml Fri Feb 20 06:57:44 2009
@@ -21,6 +21,7 @@
 <entity-engine-xml>
     <VisualTheme visualThemeId="BLUELIGHT" visualThemeSetId="BACKOFFICE" description="BlueLight Theme: Breadcrumbs, drop-down menus and rounded corners"/>
     <VisualThemeResource visualThemeId="BLUELIGHT" resourceTypeEnumId="VT_STYLESHEET" resourceValue="/bluelight/style.css" sequenceId="01"/>
+    <VisualThemeResource visualThemeId="BLUELIGHT" resourceTypeEnumId="VT_HDR_JAVASCRIPT" resourceValue="/bluelight/dropdown.js" sequenceId="01"/>
     <VisualThemeResource visualThemeId="BLUELIGHT" resourceTypeEnumId="VT_SHORTCUT_ICON" resourceValue="/bluelight/ofbiz.ico" sequenceId="01"/>
     <VisualThemeResource visualThemeId="BLUELIGHT" resourceTypeEnumId="VT_HDR_IMAGE_URL" resourceValue="/bluelight/ofbiz_logo.jpg" sequenceId="01"/>
     <VisualThemeResource visualThemeId="BLUELIGHT" resourceTypeEnumId="VT_HDR_TMPLT_LOC" resourceValue="component://bluelight/includes/header.ftl" sequenceId="01"/>

Added: ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js?rev=746171&view=auto
==============================================================================
--- ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js (added)
+++ ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js Fri Feb 20 06:57:44 2009
@@ -0,0 +1,23 @@
+var DropDownMenu = Class.create();
+DropDownMenu.prototype = {
+ initialize: function(menuElement) {
+ menuElement.childElements().each(function(node){
+ // if there is a submenu
+ var submenu = $A(node.getElementsByTagName("ul")).first();
+ if(submenu != null){
+ // make sub-menu invisible
+ Element.extend(submenu).setStyle({display: 'none'});
+ // toggle the visibility of the submenu
+ node.onmouseover = node.onmouseout = function(){
+ Element.toggle(submenu);
+ }
+ }
+ });
+}
+};
+
+Event.observe(window, "load", function(){
+ var mainmenu = new DropDownMenu($('main-navigation'));
+    var appmenu = new DropDownMenu($('app-navigation'));
+});
+

Propchange: ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain