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

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Jul 8 16:12:14 CEST 2011


Author: dietmar
Date: 2011-07-08 16:12:14 +0200 (Fri, 08 Jul 2011)
New Revision: 6282

Modified:
   pve-manager/pve2/www/manager/dc/UserEdit.js
Log:
use create property (to correctly name the submit button)


Modified: pve-manager/pve2/www/manager/dc/UserEdit.js
===================================================================
--- pve-manager/pve2/www/manager/dc/UserEdit.js	2011-07-08 14:10:52 UTC (rev 6281)
+++ pve-manager/pve2/www/manager/dc/UserEdit.js	2011-07-08 14:12:14 UTC (rev 6282)
@@ -5,12 +5,12 @@
     initComponent : function() {
         var me = this;
 
-        var create = !me.userid;
+        me.create = !me.userid;
 
         var url;
         var method;
 
-        if (create) {
+        if (me.create) {
             url = '/api2/extjs/access/users';
             method = 'POST';
         } else {
@@ -20,7 +20,7 @@
 
         me.column1 = [
             {
-                xtype: create ? 'textfield' : 'displayfield',
+                xtype: me.create ? 'textfield' : 'displayfield',
                 name: 'userid',
                 fieldLabel: 'Userid',
                 value: me.userid,
@@ -53,7 +53,7 @@
             }
         ];
 
-        if (!create) {
+        if (!me.create) {
             me.column1.push({
                 xtype: 'pvecheckbox',
                 fieldLabel: 'Enable',
@@ -70,7 +70,7 @@
 
         me.callParent();
 
-        if (!create) {
+        if (!me.create) {
             me.load({
                 success: function(form, action) {
 //                    if (action.result.data.type !== me.userid) {




More information about the pve-devel mailing list