← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6758: (patient) Hide filter row when clicking Cancel button in Tabular report.

 

------------------------------------------------------------
revno: 6758
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-04-26 21:37:50 +0700
message:
  (patient) Hide filter row when clicking Cancel button in Tabular report.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.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-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js	2012-04-26 14:31:07 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js	2012-04-26 14:37:50 +0000
@@ -978,7 +978,7 @@
 							{
 								grid.getView().getNode(0).classList.remove('hidden');
 								var record = grid.getView().getRecord( grid.getView().getNode(0) );
-								grid.getView().getSelectionModel().select(record, false, true);
+								grid.getView().getSelectionModel().select(record, false, false);
 							}
 							else {
 								TR.exe.execute();
@@ -1122,8 +1122,11 @@
 							},
 							edit: function( editor, e ){
 								TR.exe.execute();
+							},
+							canceledit: function( grid, eOpts ){
+								var grid = TR.datatable.datatable;
+								grid.getView().getNode(0).classList.add('hidden');
 							}
-
 						}
 					})
 				],