← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 134: dhis-web-commons-resources: Enabled the animated menu again. This was removed in order to make it...

 

------------------------------------------------------------
revno: 134
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Tue 2009-03-31 12:41:50 +0200
message:
  dhis-web-commons-resources: Enabled the animated menu again. This was removed in order to make it work in webkit enabled browsers, but this is not a good solution as these effects are used throughout the system. At least we know the source of the problem and can alert jquery about it and wait for a fix
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js

=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js	2009-03-11 06:15:48 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/menu.js	2009-03-31 10:41:50 +0000
@@ -2,33 +2,43 @@
 var closeTimer = null;
 var dropDownId = null;
 
-function showDropDown( id ){
+function showDropDown( id )
+{
     cancelHideDropDownTimeout();
+    
     var newDropDownId = "#" + id;
   
     if ( dropDownId != newDropDownId )
     {
-        if ( dropDownId ){
+        if ( dropDownId )
+        {
             hideDropDown();
         }
 
         dropDownId = newDropDownId;
-        $( dropDownId ).show();
+        
+        $( dropDownId ).show( 'fast' );
     }
 }
 
-function hideDropDown(){
-    $( dropDownId ).hide();
+function hideDropDown()
+{
+    $( dropDownId ).hide( 'fast' );
+    
     dropDownId = null;
 }
 
-function hideDropDownTimeout(){
+function hideDropDownTimeout()
+{
     closeTimer = window.setTimeout( hideDropDown, menuTimeout );
 }
 
-function cancelHideDropDownTimeout(){
-    if ( closeTimer ){
+function cancelHideDropDownTimeout()
+{
+    if ( closeTimer )
+    {
         window.clearTimeout( closeTimer );
+        
         closeTimer = null;
     }
 }



--
Trunk
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.