]> git.proxmox.com Git - pve-manager.git/commitdiff
ext6migrate: fix LoginWindow
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Mar 2016 09:23:58 +0000 (10:23 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Mar 2016 09:23:58 +0000 (10:23 +0100)
move the static configuration to the class definition

www/manager6/window/LoginWindow.js

index 31bf6b5953a175bdb37403978bee30ab3db23c77..62f7dbae38a91ad563c05c070b15aa7d4aefdfd3 100644 (file)
@@ -1,6 +1,22 @@
 Ext.define('PVE.window.LoginWindow', {
     extend: 'Ext.window.Window',
 
+    width: 400,
+
+    modal: true,
+
+    border: false,
+
+    draggable: true,
+
+    closable: false,
+
+    resizable: false,
+
+    layout: 'auto',
+
+    title: gettext('Proxmox VE Login'),
+
     // private
     onLogon: function() {
        var me = this;
@@ -42,25 +58,13 @@ Ext.define('PVE.window.LoginWindow', {
        });
 
        Ext.apply(me, {
-           width: 400,
-           modal: true,
-           border: false,
-           draggable: true,
-           closable: false,
-           resizable: false,
-           layout: 'auto',
-           title: gettext('Proxmox VE Login'),
-
            items: [{
                xtype: 'form',
                layout: 'form',
                url: '/api2/extjs/access/ticket',
 
                fieldDefaults: {
-                   labelAlign: 'right'
-               },
-
-               defaults: {
+                   labelAlign: 'right',
                    allowBlank: false
                },