← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6951: Quickly fixed

 

------------------------------------------------------------
revno: 6951
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-05-15 22:32:07 +0200
message:
  Quickly fixed
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/table.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/table.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/table.js	2012-05-15 20:21:11 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/table.js	2012-05-15 20:32:07 +0000
@@ -71,8 +71,8 @@
 	},
 	getStore: function(data) {
 		var store = Ext.create('Ext.data.ArrayStore', {
-        	fields: DHIS.table.grid.getHeaderArray(data),
-        	data: data.rows
+			fields: DHIS.table.grid.getHeaderArray(data),
+			data: data.rows
 		});
 		return store;
 	},
@@ -81,11 +81,10 @@
 			url: DHIS.table.utils.getDataUrl(conf),
 			disableCaching: false,
 			success: function(data) {
-				var el = conf.el;
 				var grid = Ext.create('Ext.grid.Panel', {
 					store: DHIS.table.grid.getStore(data),
 					columns: DHIS.table.grid.getColumnArray(data),
-					renderTo: el
+					renderTo: conf.el
 				});
 			}
 		});
@@ -123,8 +122,7 @@
 			disableCaching: false,
 			success: function(data) {
 				var html = DHIS.table.plain.getMarkup(data);
-				var el = conf.el;
-				Ext.get(el).update(html);
+				Ext.get(conf.el).update(html);
 			}
 		});
 	}