add activeTitle helper

This commit is contained in:
Dietmar Maurer 2016-11-10 11:33:00 +01:00
parent 3a4752e8bb
commit f677074b47

View File

@ -1,5 +1,7 @@
Ext.define('PVE.window.Wizard', { Ext.define('PVE.window.Wizard', {
extend: 'Ext.window.Window', extend: 'Ext.window.Window',
activeTitle: '', // used for automated testing
getValues: function(dirtyOnly) { getValues: function(dirtyOnly) {
var me = this; var me = this;
@ -129,6 +131,7 @@ Ext.define('PVE.window.Wizard', {
}); });
var display_header = function(newcard) { var display_header = function(newcard) {
me.activeTitle = newcard.title;
var html = '<h1>' + newcard.title + '</h1>'; var html = '<h1>' + newcard.title + '</h1>';
if (newcard.descr) { if (newcard.descr) {
html += newcard.descr; html += newcard.descr;