[pve-devel] r6211 - pve-manager/pve2/www/manager/qemu

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jun 30 12:44:48 CEST 2011


Author: dietmar
Date: 2011-06-30 12:44:48 +0200 (Thu, 30 Jun 2011)
New Revision: 6211

Modified:
   pve-manager/pve2/www/manager/qemu/HardwareView.js
Log:
impl. PVE.qemu.MemoryEdit


Modified: pve-manager/pve2/www/manager/qemu/HardwareView.js
===================================================================
--- pve-manager/pve2/www/manager/qemu/HardwareView.js	2011-06-30 10:32:19 UTC (rev 6210)
+++ pve-manager/pve2/www/manager/qemu/HardwareView.js	2011-06-30 10:44:48 UTC (rev 6211)
@@ -1,3 +1,29 @@
+Ext.define('PVE.qemu.MemoryEdit', {
+    extend: 'PVE.window.Edit',
+
+    initComponent : function() {
+	var me = this;
+
+	Ext.applyIf(me, {
+	    title: "Edit memory settings",
+	    items: {
+		xtype: 'numberfield',
+		name: 'memory',
+		minValue: 32,
+		maxValue: 128*1024,
+		value: 512,
+		step: 32,
+		fieldLabel: 'Memory (MB)',
+		allowBlank: false
+	    }
+	});
+
+	me.callParent();
+
+	me.load();
+    }
+});
+
 Ext.define('PVE.qemu.DisplayEdit', {
     extend: 'PVE.window.Edit',
 
@@ -145,6 +171,7 @@
 	var rows = {
 	    memory: {
 		header: 'Memory',
+		editor: 'PVE.qemu.MemoryEdit',
 		never_delete: true,
 		tdCls: 'pve-itype-icon-memory',
 		renderer: function(value) {



More information about the pve-devel mailing list