|
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 |
if (!nextPage) { |
193 |
throw new Error('ERROR: received invalid page name [' + dojo.toJson(nextPage) + '] for Wizard.next(' + dojo.toJson(currentPage) + ')'); |
193 |
throw new Error('ERROR: received invalid page name [' + dojo.toJson(nextPage) + '] for Wizard.next(' + dojo.toJson(currentPage) + ')'); |
194 |
} |
194 |
} |
195 |
this._updateButtons(nextPage); |
195 |
this._updateButtons(nextPage); |
196 |
this.selectChild(this._pages[nextPage]); |
196 |
this.selectChild(this._pages[nextPage]); |
|
|
197 |
})); |
197 |
}, |
198 |
}, |
198 |
|
199 |
|
199 |
next: function(/*String*/ pageName) { |
200 |
next: function(/*String*/ pageName) { |
|
226 |
|
227 |
|
227 |
_previous: function(/*String*/ currentPage) { |
228 |
_previous: function(/*String*/ currentPage) { |
228 |
// update visibilty of buttons and show previous page |
229 |
// update visibilty of buttons and show previous page |
229 |
var previousPage = this.previous(currentPage); |
230 |
dojo.when(this.previous(currentPage), dojo.hitch(this, function(previousPage) { |
230 |
this._updateButtons(previousPage); |
231 |
this._updateButtons(previousPage); |
231 |
this.selectChild(this._pages[previousPage]); |
232 |
this.selectChild(this._pages[previousPage]); |
|
|
233 |
})); |
232 |
}, |
234 |
}, |
233 |
|
235 |
|
234 |
previous: function(/*String*/ pageName) { |
236 |
previous: function(/*String*/ pageName) { |