svn commit: r1072338 - in /ofbiz/trunk/themes: bluelight/includes/appbarClose.ftl bluelight/webapp/bluelight/dropdown.js droppingcrumbs/includes/appbarClose.ftl droppingcrumbs/webapp/droppingcrumbs/js/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: r1072338 - in /ofbiz/trunk/themes: bluelight/includes/appbarClose.ftl bluelight/webapp/bluelight/dropdown.js droppingcrumbs/includes/appbarClose.ftl droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js

buscob
Author: buscob
Date: Sat Feb 19 14:32:17 2011
New Revision: 1072338

URL: http://svn.apache.org/viewvc?rev=1072338&view=rev
Log:
Fixed a dropdown menu flickering bug in bluelight and droppingcrumbs themes using the same solution as in tomahawk theme.
This bug consists in the dropdown menus to be temporary visible when the page takes a while to be loaded completely.

Modified:
    ofbiz/trunk/themes/bluelight/includes/appbarClose.ftl
    ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
    ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl
    ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js

Modified: ofbiz/trunk/themes/bluelight/includes/appbarClose.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/includes/appbarClose.ftl?rev=1072338&r1=1072337&r2=1072338&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/includes/appbarClose.ftl (original)
+++ ofbiz/trunk/themes/bluelight/includes/appbarClose.ftl Sat Feb 19 14:32:17 2011
@@ -29,3 +29,10 @@ under the License.
 </div>
 <div class="clear">
 </div>
+
+<#if userLogin?exists>
+<script type="text/javascript">
+  var mainmenu = new DropDownMenu(jQuery('#main-navigation'));
+  var appmenu = new DropDownMenu(jQuery('#app-navigation'));
+</script>
+</#if>

Modified: ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js?rev=1072338&r1=1072337&r2=1072338&view=diff
==============================================================================
--- ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js (original)
+++ ofbiz/trunk/themes/bluelight/webapp/bluelight/dropdown.js Sat Feb 19 14:32:17 2011
@@ -39,9 +39,4 @@ var DropDownMenu = (
   }
 );
 
-jQuery("document").ready(function(){
-    var mainmenu = new DropDownMenu(jQuery('#main-navigation'));
-    var appmenu = new DropDownMenu(jQuery('#app-navigation'));
-});
-
 

Modified: ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl?rev=1072338&r1=1072337&r2=1072338&view=diff
==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl (original)
+++ ofbiz/trunk/themes/droppingcrumbs/includes/appbarClose.ftl Sat Feb 19 14:32:17 2011
@@ -28,3 +28,10 @@ under the License.
 </div>
 <div class="clear">
 </div>
+
+<#if userLogin?exists>
+<script type="text/javascript">
+  var mainmenu = new DropDownMenu(jQuery('#main-navigation'));
+  var appmenu = new DropDownMenu(jQuery('#app-navigation'));
+</script>
+</#if>

Modified: ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js?rev=1072338&r1=1072337&r2=1072338&view=diff
==============================================================================
--- ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js (original)
+++ ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/dropdown.js Sat Feb 19 14:32:17 2011
@@ -38,9 +38,3 @@ var DropDownMenu =  (
     });
   }
 );
-
-jQuery("document").ready(function(){
-    var mainmenu = new DropDownMenu(jQuery('#main-navigation'));
-    var appmenu = new DropDownMenu(jQuery('#app-navigation'));
-});
-