View | Details | Raw Unified | Return to bug 26604 | Differences between
and this patch

Collapse All | Expand All

(-)debian/changelog (+7 lines)
 Lines 1-3    Link Here 
1
univention-management-console-frontend (1.0.309-1) unstable; urgency=low
2
3
  * Wizard: next/previous functions now accept deferred objects
4
    as return value (Bug #26603)
5
6
 -- Jascha Geerds <geerds@univention.de>  Fri, 23 Mar 2012 15:29:20 +0100
7
1
univention-management-console-frontend (1.0.308-1) unstable; urgency=low
8
univention-management-console-frontend (1.0.308-1) unstable; urgency=low
2
9
3
  * Form: on save, distinguish between put() and add(); Bug #26542
10
  * Form: on save, distinguish between put() and add(); Bug #26542
(-)umc/widgets/Wizard.js (-9 / +12 lines)
 Lines 188-199    Link Here 
188
188
189
	_next: function(/*String*/ currentPage) {
189
	_next: function(/*String*/ currentPage) {
190
		// update visibilty of buttons and show next page
190
		// update visibilty of buttons and show next page
191
		var nextPage = this.next(currentPage);
191
		dojo.when(this.next(currentPage), dojo.hitch(this, function(nextPage) {
192
		if (!nextPage) {
192
			this._updateButtons(nextPage);
193
			throw new Error('ERROR: received invalid page name [' + dojo.toJson(nextPage) + '] for Wizard.next(' + dojo.toJson(currentPage) + ')');
193
			if (!nextPage) {
194
		}
194
				throw new Error('ERROR: received invalid page name [' + dojo.toJson(nextPage) + '] for Wizard.next(' + dojo.toJson(currentPage) + ')');
195
		this._updateButtons(nextPage);
195
			}
196
		this.selectChild(this._pages[nextPage]);
196
			this._updateButtons(nextPage);
197
			this.selectChild(this._pages[nextPage]);
198
		}));
197
	},
199
	},
198
200
199
	next: function(/*String*/ pageName) {
201
	next: function(/*String*/ pageName) {
 Lines 226-234    Link Here 
226
228
227
	_previous: function(/*String*/ currentPage) {
229
	_previous: function(/*String*/ currentPage) {
228
		// update visibilty of buttons and show previous page
230
		// update visibilty of buttons and show previous page
229
		var previousPage = this.previous(currentPage);
231
		dojo.when(this.previous(currentPage), dojo.hitch(this, function(previousPage) {
230
		this._updateButtons(previousPage);
232
			this._updateButtons(previousPage);
231
		this.selectChild(this._pages[previousPage]);
233
			this.selectChild(this._pages[previousPage]);
234
		}));
232
	},
235
	},
233
236
234
	previous: function(/*String*/ pageName) {
237
	previous: function(/*String*/ pageName) {

Return to bug 26604