You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2011/02/19 15:32:18 UTC

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

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'));
-});
-



Re: 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

Posted by Bruno Busco <br...@gmail.com>.
;)

2011/2/19 Jacques Le Roux <ja...@les7arts.com>

> Thanks Bruno,
>
> This was really annoying
>
> Jacques
>
>
>  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'));
>> -});
>> -
>>
>>
>>
>
>

Re: 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

Posted by Jacques Le Roux <ja...@les7arts.com>.
Thanks Bruno,

This was really annoying

Jacques

> 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'));
> -});
> -
>
>