← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4467: Codestyle

 

------------------------------------------------------------
revno: 4467
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2011-08-27 14:58:08 +0200
message:
  Codestyle
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js


--
lp:dhis2
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
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-26 14:17:36 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2011-08-27 12:58:08 +0000
@@ -353,8 +353,7 @@
     function getTagId( unitId )
     {
         return 'orgUnit' + unitId;
-    }
-    ;
+    };
 
     this.findByCode = function()
     {
@@ -540,8 +539,7 @@
         var child = $parentTag.find( "ul" ).eq( 0 );
         setVisible( child, false );
         setToggle( $parentTag, false );
-    }
-    ;
+    };
 
     function processExpand( parent )
     {
@@ -557,8 +555,7 @@
             setVisible( $children.eq( 0 ), true );
             setToggle( $parentTag, true );
         }
-    }
-    ;
+    };
 
     function createChildren( parentTag, parent )
     {
@@ -574,8 +571,7 @@
         setToggle( parentTag, true );
 
         $( parentTag ).append( $childrenTag );
-    }
-    ;
+    };
 
     function createTreeElementTag( ou )
     {
@@ -605,8 +601,7 @@
         $childTag.append( $linkTag );
 
         return $childTag;
-    }
-    ;
+    };
 
     function setToggle( unitTag, expanded )
     {
@@ -621,8 +616,7 @@
         {
             $toggleTag.append( toggleImg );
         }
-    }
-    ;
+    };
 
     function setVisible( tag, visible )
     {
@@ -634,42 +628,35 @@
         {
             $( tag ).hide();
         }
-    }
-    ;
+    };
 
     function isVisible( tag )
     {
         return $( tag ).is( ":visible" );
-    }
-    ;
+    };
 
     function getTagId( unitId )
     {
         return 'orgUnit' + unitId;
-    }
-    ;
+    };
 
     function getToggleExpand()
     {
         return getToggleImage().attr( "src", "../images/colapse.png" ).attr( "alt", "[+]" );
-    }
-    ;
+    };
 
     function getToggleCollapse()
     {
         return getToggleImage().attr( "src", "../images/expand.png" ).attr( "alt", "[-]" );
-    }
-    ;
+    };
 
     function getToggleBlank()
     {
         return getToggleImage().attr( "src", "../images/transparent.gif" ).removeAttr( "alt" );
-    }
-    ;
+    };
 
     function getToggleImage()
     {
         return $( "<img/>" ).attr( "width", 9 ).attr( "height", 9 );
-    }
-    ;
+    };
 }