[pve-devel] [PATCH 5/8] remove uneeded decision between convert and not convert for each field object

Stefan Priebe s.priebe at profihost.ag
Wed Apr 24 10:45:21 CEST 2013


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 www/manager/data/ResourceStore.js |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/www/manager/data/ResourceStore.js b/www/manager/data/ResourceStore.js
index 23f59e6..d8cb653 100644
--- a/www/manager/data/ResourceStore.js
+++ b/www/manager/data/ResourceStore.js
@@ -204,13 +204,8 @@ Ext.define('PVE.data.ResourceStore', {
 	var fields = [];
 	var fieldNames = [];
 	Ext.Object.each(field_defaults, function(key, value) {
-	    if (!Ext.isDefined(value.convert)) {
-		fields.push({name: key, type: value.type});
-		fieldNames.push(key);
-	    } else if (key === 'text' || key === 'running') { 
 		fields.push({name: key, type: value.type, convert: value.convert});
 		fieldNames.push(key);
-	    }		
 	});
 
 	Ext.define('PVEResources', {
-- 
1.7.10.4



More information about the pve-devel mailing list