[pve-devel] r6354 - pve-manager/pve2/www/manager/dc

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Jul 22 10:02:14 CEST 2011


Author: dietmar
Date: 2011-07-22 10:02:13 +0200 (Fri, 22 Jul 2011)
New Revision: 6354

Modified:
   pve-manager/pve2/www/manager/dc/AuthEdit.js
Log:
use KVComboBox


Modified: pve-manager/pve2/www/manager/dc/AuthEdit.js
===================================================================
--- pve-manager/pve2/www/manager/dc/AuthEdit.js	2011-07-22 07:54:03 UTC (rev 6353)
+++ pve-manager/pve2/www/manager/dc/AuthEdit.js	2011-07-22 08:02:13 UTC (rev 6354)
@@ -58,19 +58,13 @@
         ];
 
         var column2 = [
-	    Ext.create('Ext.form.field.ComboBox', {
+	    Ext.create('PVE.form.KVComboBox', {
 		fieldLabel: 'Server Type',
                 name: 'type',
-		store: Ext.create('Ext.data.Store', {
-		    fields: ['type'],
-		    data: [
-			{'type': 'ad'},
-			{'type': 'ldap'}
-		    ]
-		}),
-		queryMode: 'local',
-		displayField: 'type',
-		valueField: 'type'
+		data: [
+		    ['ad', 'Active Directory Server'],
+		    ['ldap', 'LDAP/LDAPs Server']
+		]
 	    }),
             {
                 xtype: 'textfield',



More information about the pve-devel mailing list