[pve-devel] r6002 - in pve-manager/pve2/www/new: . form

svn-commits at proxmox.com svn-commits at proxmox.com
Thu May 19 12:59:56 CEST 2011


Author: dietmar
Date: 2011-05-19 12:59:56 +0200 (Thu, 19 May 2011)
New Revision: 6002

Added:
   pve-manager/pve2/www/new/form/BondModeSelector.js
Modified:
   pve-manager/pve2/www/new/Makefile.am
Log:
impl. BondModeSelector


Modified: pve-manager/pve2/www/new/Makefile.am
===================================================================
--- pve-manager/pve2/www/new/Makefile.am	2011-05-19 10:12:35 UTC (rev 6001)
+++ pve-manager/pve2/www/new/Makefile.am	2011-05-19 10:59:56 UTC (rev 6002)
@@ -19,6 +19,7 @@
 	form/DiskFormatSelector.js			\
 	form/BusTypeSelector.js				\
 	form/RealmComboBox.js				\
+	form/BondModeSelector.js			\
 	form/ViewSelector.js				\
 	form/NodeSelector.js				\
 	form/FileSelector.js				\

Added: pve-manager/pve2/www/new/form/BondModeSelector.js
===================================================================
--- pve-manager/pve2/www/new/form/BondModeSelector.js	                        (rev 0)
+++ pve-manager/pve2/www/new/form/BondModeSelector.js	2011-05-19 10:59:56 UTC (rev 6002)
@@ -0,0 +1,31 @@
+Ext.define('PVE.form.BondModeSelector', {
+    extend: 'Ext.form.field.ComboBox',
+    alias: ['widget.bondModeSelector'],
+  
+    initComponent: function() {
+	var me = this;
+
+	var store = Ext.create('Ext.data.ArrayStore', {
+	    model: 'KeyValue',
+            data : [ 
+		['balance-rr', ''], 
+		['active-backup', ''], 
+		['balance-xor', ''], 
+		['broadcast', ''], 
+		['802.3ad', ''], 
+		['balance-tlb', ''], 
+		['balance-alb', ''], 
+	    ]
+        });
+
+	Ext.apply(me, {
+	    store: store,
+	    queryMode: 'local',
+	    editable: false,
+	    displayField: 'key',
+	    valueField: 'key'
+	});
+
+	me.callParent();
+    }
+});




More information about the pve-devel mailing list