[pve-devel] r5881 - pve-manager/pve2/www/new/data

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Apr 27 07:27:51 CEST 2011


Author: dietmar
Date: 2011-04-27 07:27:51 +0200 (Wed, 27 Apr 2011)
New Revision: 5881

Modified:
   pve-manager/pve2/www/new/data/PVEProxy.js
   pve-manager/pve2/www/new/data/ResourceStore.js
Log:
s/regModel/define/


Modified: pve-manager/pve2/www/new/data/PVEProxy.js
===================================================================
--- pve-manager/pve2/www/new/data/PVEProxy.js	2011-04-27 05:05:05 UTC (rev 5880)
+++ pve-manager/pve2/www/new/data/PVEProxy.js	2011-04-27 05:27:51 UTC (rev 5881)
@@ -26,7 +26,8 @@
 
 }, function() {
 
-    Ext.regModel('PVERealm', {
+    Ext.define('PVERealm', {
+	extend: "Ext.data.Model",
 	fields: [ 'realm', 'comment', 'default' ],
 	proxy: {
 	    type: 'pve',
@@ -34,7 +35,8 @@
 	}
     });
 
-    Ext.regModel('KeyValue', {
+    Ext.define('KeyValue', {
+	extend: "Ext.data.Model",
 	fields: [ 'key', 'value' ],
 	idProperty: 'key'
     });

Modified: pve-manager/pve2/www/new/data/ResourceStore.js
===================================================================
--- pve-manager/pve2/www/new/data/ResourceStore.js	2011-04-27 05:05:05 UTC (rev 5880)
+++ pve-manager/pve2/www/new/data/ResourceStore.js	2011-04-27 05:27:51 UTC (rev 5881)
@@ -138,7 +138,8 @@
 		fields.push({name: key, type: value.type, convert: value.convert});		
 	});
 
-	Ext.regModel('PVEResources', {
+	Ext.define('PVEResources', {
+	    extend: "Ext.data.Model",
 	    fields: fields,
 	    proxy: {
 		type: 'pve',
@@ -146,7 +147,8 @@
 	    }
 	});
 
-	Ext.regModel('PVETree', {
+	Ext.define('PVETree', {
+	    extend: "Ext.data.Model",
 	    fields: fields,
 	    proxy: { type: 'memory' }
 	});



More information about the pve-devel mailing list