[pve-devel] [PATCH manager 1/5] wizard: remove hidden outdated header logic

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Feb 14 13:34:44 CET 2018


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/window/Wizard.js | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizard.js
index fe5f8dd0..c23b9199 100644
--- a/www/manager6/window/Wizard.js
+++ b/www/manager6/window/Wizard.js
@@ -130,15 +130,6 @@ Ext.define('PVE.window.Wizard', {
 	    ]
 	});
 
-	var display_header = function(newcard) {
-	    me.activeTitle = newcard.title;
-	    var html = '<h1>' + newcard.title + '</h1>';
-	    if (newcard.descr) {
-		html += newcard.descr;
-	    }
-	    me.down('#header').update(html);
-	};
-
 	var disable_at = function(card) {
 	    var tp = me.down('#wizcontent');
 	    var idx = tp.items.indexOf(card);
@@ -184,16 +175,6 @@ Ext.define('PVE.window.Wizard', {
 	    resizable: false,
 	    layout: 'border',
 	    items: [
-		{
-		    // disabled for now - not really needed
-		    hidden: true, 
-		    region: 'north',
-		    itemId: 'header',
-		    layout: 'fit',
-		    margins: '5 5 0 5',
-		    bodyPadding: 10,
-		    html: ''
-		},
 		{
 		    xtype: 'form',
 		    region: 'center',
@@ -215,7 +196,6 @@ Ext.define('PVE.window.Wizard', {
 				tabchange(tp, atab);
 			    },
 			    tabchange: function(tp, newcard, oldcard) {
-				display_header(newcard);
 				tabchange(tp, newcard, oldcard);
 			    }
 			},
@@ -226,7 +206,6 @@ Ext.define('PVE.window.Wizard', {
 	    ]
 	});
 	me.callParent();
-	display_header(tabs[0]);
 
 	Ext.Array.each(me.query('field'), function(field) {
 	    var validcheck = function() {
-- 
2.14.2





More information about the pve-devel mailing list