[pve-devel] [PATCH manager 02/10] Move Wizard static properties to class body

Emmanuel Kasper e.kasper at proxmox.com
Wed Sep 6 10:15:32 CEST 2017


This allow those properties to be easily overriden in subclasses in a later step
---
 www/manager6/window/Wizard.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizard.js
index 7ae58776..26c3ceaf 100644
--- a/www/manager6/window/Wizard.js
+++ b/www/manager6/window/Wizard.js
@@ -1,5 +1,13 @@
 Ext.define('PVE.window.Wizard', {
     extend: 'Ext.window.Window',
+    width: 620,
+    height: 450,
+    modal: true,
+    border: false,
+    draggable: true,
+    closable: true,
+    resizable: false,
+    layout: 'border',
 
     activeTitle: '', // used for automated testing
     
@@ -175,14 +183,6 @@ Ext.define('PVE.window.Wizard', {
 	}
 
 	Ext.apply(me, {
-	    width: 620,
-	    height: 450,
-	    modal: true,
-	    border: false,
-	    draggable: true,
-	    closable: true,
-	    resizable: false,
-	    layout: 'border',
 	    items: [
 		{
 		    // disabled for now - not really needed
-- 
2.11.0





More information about the pve-devel mailing list