=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2015-08-03 19:32:48 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2015-08-03 22:22:21 +0000 @@ -134,14 +134,6 @@ function SelectionTree() { - this.clearSelectedOrganisationUnits = function() - { - $.ajax( { - url: selectionTreePath + 'clearSelectedOrganisationUnits.action', - async: false - } ); - }; - this.clearSelectedOrganisationUnitsAndBuildTree = function() { $.ajax( { === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTree.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTree.vm 2011-04-04 16:47:24 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTree.vm 2015-08-03 22:22:21 +0000 @@ -2,8 +2,7 @@ jQuery(document).ready(function() { selectionTreeSelection.setMultipleSelectionAllowed(true); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); }); === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm 2015-04-30 06:14:45 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeMultipleSelect.vm 2015-08-03 22:22:21 +0000 @@ -9,10 +9,12 @@ #if( $required ) selectionTreeSelection.setListenerFunction( selectOrganisationUnit__ ); #end + #if( $cleanAll ) - selectionTree.clearSelectedOrganisationUnits(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); + #else + selectionTree.buildSelectionTree(); #end - selectionTree.buildSelectionTree(); }); function selectedOrganisationUnitXML__( xml ) === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeSingleSelect.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeSingleSelect.vm 2014-04-05 17:55:31 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/selectionTreeSingleSelect.vm 2015-08-03 22:22:21 +0000 @@ -8,10 +8,12 @@ #if( $required ) selectionTreeSelection.setListenerFunction( selectOrganisationUnit__ ); #end + #if( $cleanAll ) - selectionTree.clearSelectedOrganisationUnits(); - #end + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); + #else selectionTree.buildSelectionTree(); + #end }); === modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2015-08-03 19:32:48 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2015-08-03 22:22:21 +0000 @@ -61,9 +61,8 @@ $( "#searchField" ).focus(); $( "#searchField" ).keyup( dhis2.db.search ); - selectionTree.clearSelectedOrganisationUnits(); selectionTreeSelection.setMultipleSelectionAllowed( true ); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); $.getJSON( "../api/me/user-account.json?" + dhis2.util.cacheBust(), function( json ) { dhis2.db.currentKey = "dhis2.dashboard.current." + json.username; === modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventExportForm.vm' --- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventExportForm.vm 2014-11-17 08:05:22 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/eventExportForm.vm 2015-08-03 22:22:21 +0000 @@ -49,8 +49,7 @@ }); selectionTreeSelection.setMultipleSelectionAllowed( false ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); $.ajax({ url: '../api/programs.json' === modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/exportDataValueForm.vm' --- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/exportDataValueForm.vm 2014-10-07 21:37:53 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/exportDataValueForm.vm 2015-08-03 22:22:21 +0000 @@ -3,8 +3,7 @@ datePickerInRange( 'startDate' , 'endDate' ); selectionTreeSelection.setMultipleSelectionAllowed( true ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); jQuery("#availableDataSets").dhisAjaxSelect({ source: "../api/dataSets.json?links=false&paging=false", === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/dataBrowserForm.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/dataBrowserForm.js 2011-12-23 13:07:59 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/dataBrowserForm.js 2015-08-03 22:22:21 +0000 @@ -3,8 +3,7 @@ selectionTreeSelection.setListenerFunction( organisationUnitModeSelected ); selectionTreeSelection.setMultipleSelectionAllowed( false ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); datePickerInRange( 'fromDate', 'toDate' ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/organisationUnitMergeForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/organisationUnitMergeForm.vm 2011-03-28 15:28:36 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/organisationUnitMergeForm.vm 2015-08-03 22:22:21 +0000 @@ -2,8 +2,7 @@ jQuery(document).ready(function() { selectionTreeSelection.setMultipleSelectionAllowed( false ); selectionTreeSelection.setListenerFunction( treeSelected ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); }); var i18n_merging = '$encoder.jsEscape( $i18n.getString( "merging" ), "'" )'; === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewEditorForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewEditorForm.vm 2012-04-16 13:41:33 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/viewEditorForm.vm 2015-08-03 22:22:21 +0000 @@ -18,12 +18,10 @@ - -
$i18n.getString( "report_table_parameters" )
- - - - - -#if ( $!reportParams.isParamReportingMonth() ) - -
$i18n.getString( "reporting_period" )
- -
- -
- -#end - - - -#if ( $!reportParams.isParamGrandParentOrganisationUnit() || $!reportParams.isParamParentOrganisationUnit() || $!reportParams.isParamOrganisationUnit() ) - -
$i18n.getString( "organisation_unit" )
- -
- - -#end - - - -
-#if( $!reportParams.isSet() ) - -#end -
- - === modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm' --- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm 2014-08-18 08:54:32 +0000 +++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm 2015-08-03 22:22:21 +0000 @@ -88,8 +88,7 @@ selectionTreeSelection.setMultipleSelectionAllowed( false ); selectionTreeSelection.setListenerFunction( organisationUnitSelected ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); === modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupAnalysisForm.vm' --- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupAnalysisForm.vm 2014-11-16 12:56:21 +0000 +++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/followupAnalysisForm.vm 2015-08-03 22:22:21 +0000 @@ -7,8 +7,7 @@ $( document ).ready( function() { selectionTreeSelection.setMultipleSelectionAllowed( false ); selectionTreeSelection.setListenerFunction( getFollowupAnalysis ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); $( "#info" ).html( i18n_no_organisation_unit_selected ); $( "#downloadButtons input:button" ).attr( "disabled", true ); === modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/runValidationForm.vm' --- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/runValidationForm.vm 2014-08-18 08:54:32 +0000 +++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/runValidationForm.vm 2015-08-03 22:22:21 +0000 @@ -2,10 +2,9 @@ jQuery(document).ready(function(){ datePickerInRange( 'startDate' , 'endDate' ); - selectionTree.clearSelectedOrganisationUnits(); - selectionTree.buildSelectionTree(); selectionTreeSelection.setMultipleSelectionAllowed( false ); selectionTreeSelection.setListenerFunction( organisationUnitSelected ); + selectionTree.clearSelectedOrganisationUnitsAndBuildTree(); }); var i18n_analysing_please_wait = '$encoder.jsEscape( $i18n.getString( "analysing_please_wait" ) , "'")';