dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03911
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1303: Mirror fix.
------------------------------------------------------------
revno: 1303
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2010-01-12 13:16:58 +0700
message:
Mirror fix.
modified:
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelitems.vm
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.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/excelitems.vm'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelitems.vm 2010-01-12 06:00:44 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelitems.vm 2010-01-12 06:16:58 +0000
@@ -14,7 +14,7 @@
</table>
<table width="100%">
<tr>
- <th><input type="checkbox" id="checkAll" name="checkAll"></th>
+ <th><input type="checkbox" id="checkAll" name="checkAll" onChange='selectedItemsAll();'></th>
<th>$i18n.getString('name')</th>
<th>$i18n.getString('sheetNo')</th>
<th>$i18n.getString('row')</th>
=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js 2010-01-12 06:00:44 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/javascript/excelitems.js 2010-01-12 06:16:58 +0000
@@ -540,13 +540,25 @@
function saveCopyExcelItemsToGroupReceived( data ) {
- //var type = data.getAttribute("type");
-
- //if ( type == "success" ) {
- setMessage( data.firstChild.nodeValue );
- //}
+ setMessage( data.firstChild.nodeValue );
hideById("copyTo");
deleteDivEffect();
+}
+
+// ----------------------------------------------------
+// Select Items ALL
+// ----------------------------------------------------
+
+function selectedItemsAll(){
+
+ var checked = byId('checkAll').checked;
+
+ var list = document.getElementsByName('excelItemChecked');
+
+ for (var i=0 ;i<list.length; i++)
+ {
+ list.item(i).checked = checked;
+ }
}
\ No newline at end of file