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

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Jul 8 16:10:52 CEST 2011


Author: dietmar
Date: 2011-07-08 16:10:52 +0200 (Fri, 08 Jul 2011)
New Revision: 6281

Modified:
   pve-manager/pve2/www/manager/dc/UserEdit.js
Log:
do not use global variable title!!


Modified: pve-manager/pve2/www/manager/dc/UserEdit.js
===================================================================
--- pve-manager/pve2/www/manager/dc/UserEdit.js	2011-07-08 14:07:34 UTC (rev 6280)
+++ pve-manager/pve2/www/manager/dc/UserEdit.js	2011-07-08 14:10:52 UTC (rev 6281)
@@ -4,12 +4,8 @@
 
     initComponent : function() {
         var me = this;
+
         var create = !me.userid;
-        if (create) {
-            title = "Create User";
-        } else {
-            title = "Edit User '" + me.userid + "'";
-        }
 
         var url;
         var method;
@@ -67,7 +63,7 @@
         }
 
         Ext.applyIf(me, {
-            title: title,
+            title: me.create ? "Create User" : "Edit User '" + me.userid + "'",
             url: url,
             method: method
         });




More information about the pve-devel mailing list