=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-09-13 07:49:41 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-09-13 15:59:16 +0000 @@ -414,58 +414,58 @@ function enableSectionFilter() { - var $sectionsHeaders = $(".formSection .cent h3"); + var $sectionsHeaders = $( '.formSection .cent h3' ); - if( $sectionsHeaders.size() > 1) + if ( $sectionsHeaders.size() > 1) { - $("#selectionBox").css("height", "123px"); + $( '#selectionBox' ).css( 'height', '123px' ); - $("#filterDataSetSection").append(""); + $( '#filterDataSetSection' ).append( "" ); $sectionsHeaders.each(function(idx, value) { - $("#filterDataSetSection").append(""); + $( '#filterDataSetSection' ).append( "" ); }); - $("#filterDataSetSectionTr").show(); + $( '#filterDataSetSectionTr' ).show(); } else { - $("#selectionBox").css("height", "93px"); - $("#filterDataSetSectionTr").hide(); - $("#filterDataSetSection").children().remove(); + $( '#selectionBox' ).css( 'height', '93px' ); + $( '#filterDataSetSectionTr' ).hide(); + $( '#filterDataSetSection' ).children().remove(); } } function filterOnSection() { - var $filterDataSetSection = $("#filterDataSetSection"); + var $filterDataSetSection = $( '#filterDataSetSection' ); var value = $filterDataSetSection.val(); - if(value == 'all') + if ( value == 'all' ) { $(".formSection").show(); } else { - $(".formSection").hide(); - $($(".formSection")[value]).show(); + $( '.formSection' ).hide(); + $( $( '.formSection' )[value] ).show(); } } function filterInSection($this) { var $tbody = $this.parent().parent().parent(); - var $trTarget = $tbody.find("tr:not([colspan])"); + var $trTarget = $tbody.find( 'tr:not([colspan])' ); - if($this.val() == '') + if( $this.val() == '' ) { $trTarget.show(); } else { - var $trTargetChildren = $trTarget.find('td:first-child'); - var $matched = $trTargetChildren.find(':contains("' + $this.val() + '")'); - var $not_matched = $trTargetChildren.find(':not(:contains("' + $this.val() + '"))'); + var $trTargetChildren = $trTarget.find( 'td:first-child' ); + var $matched = $trTargetChildren.find( ':contains("' + $this.val() + '")' ); + var $not_matched = $trTargetChildren.find( ':not(:contains("' + $this.val() + '"))' ); $matched.parent().parent(). show(); $not_matched.parent().parent(). hide();