← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1245: Mirror fix.

 

------------------------------------------------------------
revno: 1245
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2009-12-18 13:56:38 +0700
message:
  Mirror fix.
modified:
  dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/imports.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-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/imports.js'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/imports.js	2009-12-04 05:00:32 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/imports.js	2009-12-18 06:56:38 +0000
@@ -103,7 +103,7 @@
 		var newTD1 = document.createElement('td');
 		var id = itermValue.getElementsByTagName('id')[0].firstChild.nodeValue;
 		if(value!=0){
-			newTD1.innerHTML= "<input type='checkbox' name='excelItems' id='excelItems' value='" + id + "'>" ;
+			newTD1.innerHTML= "<input type='checkbox' name='excelItems' onChange='javascript: checkAllSelect(this);' id='excelItems' value='" + id + "'>" ;
 		}
 		
 		newTR.appendChild (newTD1);
@@ -114,6 +114,12 @@
 	}
 }
 
+function checkAllSelect(checkBox){
+	if(!checkBox.checked){
+		byId('selectAll').checked = false;
+	}
+}
+
 // -----------------------------------------------------------------------------
 // PREVIEW DATA - ORGANISATION
 // -----------------------------------------------------------------------------