|
Lines 152-165
Link Here
|
| 152 |
while ((nextpage < allPages.length) && (! this._pages[nextpage].visible)) { |
152 |
while ((nextpage < allPages.length) && (! this._pages[nextpage].visible)) { |
| 153 |
nextpage += 1; |
153 |
nextpage += 1; |
| 154 |
} |
154 |
} |
| 155 |
var current_page = this._pages[nextpage - 1]; |
155 |
this.selectChildIfValid(nextpage); |
| 156 |
dojo.when(current_page.validate === undefined || current_page.validate(), |
|
|
| 157 |
dojo.hitch(this, function(value) { |
| 158 |
if (value) { |
| 159 |
this.selectChild(this._pages[nextpage]); |
| 160 |
} |
| 161 |
}) |
| 162 |
); |
| 163 |
}) |
156 |
}) |
| 164 |
}); |
157 |
}); |
| 165 |
} |
158 |
} |
|
Lines 203-209
Link Here
|
| 203 |
while ((nextpage < allPages.length) && (! this._pages[nextpage].visible)) { |
196 |
while ((nextpage < allPages.length) && (! this._pages[nextpage].visible)) { |
| 204 |
nextpage += 1; |
197 |
nextpage += 1; |
| 205 |
} |
198 |
} |
| 206 |
this.selectChild(this._pages[nextpage]); |
199 |
this.selectChildIfValid(nextpage); |
| 207 |
} |
200 |
} |
| 208 |
else { |
201 |
else { |
| 209 |
this.save(); |
202 |
this.save(); |
|
Lines 724-729
Link Here
|
| 724 |
}), dojo.hitch(this, function() { |
717 |
}), dojo.hitch(this, function() { |
| 725 |
this.standby(false); |
718 |
this.standby(false); |
| 726 |
})); |
719 |
})); |
|
|
720 |
}, |
| 721 |
|
| 722 |
selectChildIfValid: function(nextpage) { |
| 723 |
var current_page = this._pages[nextpage - 1]; |
| 724 |
dojo.when(current_page.validate === undefined || current_page.validate(), |
| 725 |
dojo.hitch(this, function(value) { |
| 726 |
if (value) { |
| 727 |
this.selectChild(this._pages[nextpage]); |
| 728 |
} |
| 729 |
}) |
| 730 |
); |
| 727 |
} |
731 |
} |
| 728 |
|
732 |
|
| 729 |
}); |
733 |
}); |