diff --git a/management/univention-web/js/widgets/Wizard.js b/management/univention-web/js/widgets/Wizard.js index 2e331bb..ed446d6 100644 --- a/management/univention-web/js/widgets/Wizard.js +++ b/management/univention-web/js/widgets/Wizard.js @@ -38,6 +38,7 @@ define([ "dojo/aspect", "dojo/when", "dojo/json", + "dojo/promise/all", "dojox/html/styles", "dijit/layout/StackContainer", "dijit/focus", @@ -47,7 +48,7 @@ define([ "./StandbyMixin", "./_RegisterOnShowMixin", "../i18n!" -], function(declare, lang, array, event, domClass, geometry, aspect, when, json, styles, StackContainer, dijitFocus, tools, Form, Page, StandbyMixin, _RegisterOnShowMixin, _) { +], function(declare, lang, array, event, domClass, geometry, aspect, when, json, all, styles, StackContainer, dijitFocus, tools, Form, Page, StandbyMixin, _RegisterOnShowMixin, _) { return declare("umc.widgets.Wizard", [ StackContainer, StandbyMixin, _RegisterOnShowMixin ], { // summary: // This wizard class allows to specify a list of pages which will be @@ -149,6 +150,12 @@ define([ })); }, + ready: function() { + return all(array.map(this._pages, function(page) { + return page._form && page._form.ready(); + })); + }, + getHeaderButtons: function(pageName) { return this.headerButtons || []; },