← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6730: (patient) Minor fix for Filter row in Tabular report.

 

------------------------------------------------------------
revno: 6730
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-04-25 13:40:13 +0700
message:
  (patient) Minor fix for Filter row in Tabular report.
modified:
  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/css/style.css


--
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-23 12:19:27 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/app.js	2012-04-25 06:40:13 +0000
@@ -954,6 +954,7 @@
 			// grid
 			this.datatable = Ext.create('Ext.grid.Panel', {
                 height: TR.util.viewport.getSize().y - 60,
+				id: 'gridTable',
 				columns: cols,
 				scroll: 'both',
 				title: TR.cmp.settings.program.rawValue + " - " + TR.cmp.params.programStage.rawValue + " " + TR.i18n.report,
@@ -1053,7 +1054,7 @@
 					}
 				], 
 				plugins: [
-					  Ext.create('Ext.grid.plugin.CellEditing', {
+					  Ext.create('Ext.grid.plugin.RowEditing', {
 						clicksToEdit: 1,
 						editStyle: 'row',
 						clicksToMoveEditor: 1,
@@ -1068,10 +1069,7 @@
 								}
 							},
 							edit: function( editor, e ){
-								if( e.originalValue!=e.value )
-								{
-									TR.exe.execute();
-								}
+								TR.exe.execute();
 							}
 
 						}
@@ -1118,7 +1116,7 @@
 			if (Ext.grid.RowEditor) {
 				Ext.apply(Ext.grid.RowEditor.prototype, {
 					saveBtnText : TR.i18n.filter,
-					cancelBtnText : TR.i18n.cancel,
+					cancelBtnText : TR.i18n.cancel
 				});
 			}
 			

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/css/style.css'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/css/style.css	2012-04-23 12:19:27 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/app/css/style.css	2012-04-25 06:40:13 +0000
@@ -677,4 +677,17 @@
 	font-weight: weight;
 }
 
+#gridTable .x-btn-default-small
+{
+	height: 0px;
+	width: 0px
+}
 
+#gridTable .x-grid-row-editor-buttons {
+	height: 0px;
+	width: 0px
+}
+#gridTable .x-grid-row-editor-buttons-default {
+	height: 0px;
+	width: 0px
+}