[pve-devel] r6182 - pve-manager/pve2/www/manager/node

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Jun 27 11:59:36 CEST 2011


Author: dietmar
Date: 2011-06-27 11:59:36 +0200 (Mon, 27 Jun 2011)
New Revision: 6182

Modified:
   pve-manager/pve2/www/manager/node/DNSEdit.js
Log:
make fields optional (allow empty values)


Modified: pve-manager/pve2/www/manager/node/DNSEdit.js
===================================================================
--- pve-manager/pve2/www/manager/node/DNSEdit.js	2011-06-27 06:42:30 UTC (rev 6181)
+++ pve-manager/pve2/www/manager/node/DNSEdit.js	2011-06-27 09:59:36 UTC (rev 6182)
@@ -31,21 +31,24 @@
                     allowBlank: false
 		},
 		{
-		    xtype: 'textfield',
+		    xtype: 'pvetextfield',
                     fieldLabel: 'First DNS server',
 		    vtype: 'IPAddress',
+		    skipEmptyText: true,
                     name: 'dns1'
 		},
 		{
-		    xtype: 'textfield',
+		    xtype: 'pvetextfield',
                     fieldLabel: 'Second DNS server',
  		    vtype: 'IPAddress',
+		    skipEmptyText: true,
                     name: 'dns2'
 		},
 		{
-		    xtype: 'textfield',
+		    xtype: 'pvetextfield',
                     fieldLabel: 'Third DNS server',
  		    vtype: 'IPAddress',
+		    skipEmptyText: true,
                     name: 'dns3'
 		}
 	    ]
@@ -58,6 +61,7 @@
 	    disabled: true,
 	    handler: function() {
 		formpanel.submit({
+		    submitEmptyText: false,
 		    success: function() { 
 			me.close();
 		    },




More information about the pve-devel mailing list