=== 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 $( "" ).attr( "width", 9 ).attr( "height", 9 ); - } - ; + }; }