|
Lines 138-146
Link Here
|
| 138 |
// we are in locale mode if the user is __systemsetup__ |
138 |
// we are in locale mode if the user is __systemsetup__ |
| 139 |
this.local_mode = tools.status('username') == '__systemsetup__'; |
139 |
this.local_mode = tools.status('username') == '__systemsetup__'; |
| 140 |
|
140 |
|
| 141 |
// save current values |
|
|
| 142 |
this._orgValues = lang.clone(values); |
| 143 |
|
| 144 |
// add the SystemRolePage and HelpPage to the list of pages for the wizard mode |
141 |
// add the SystemRolePage and HelpPage to the list of pages for the wizard mode |
| 145 |
if (this.wizard_mode) { |
142 |
if (this.wizard_mode) { |
| 146 |
// add the SystemRolePage to the list of pages for the wizard mode if the packages have been downloaded |
143 |
// add the SystemRolePage to the list of pages for the wizard mode if the packages have been downloaded |
|
Lines 247-253
Link Here
|
| 247 |
this._pages.push(ipage); |
244 |
this._pages.push(ipage); |
| 248 |
|
245 |
|
| 249 |
// connect to valuesChanged callback of every page |
246 |
// connect to valuesChanged callback of every page |
| 250 |
ipage.setValues(values); |
|
|
| 251 |
ipage.on('valuesChanged', lang.hitch(this, 'updateAllValues')); |
247 |
ipage.on('valuesChanged', lang.hitch(this, 'updateAllValues')); |
| 252 |
}, this); |
248 |
}, this); |
| 253 |
// Now we know which pages were loaded, adjust HelpPage text |
249 |
// Now we know which pages were loaded, adjust HelpPage text |
|
Lines 314-320
Link Here
|
| 314 |
this._pages.push(ipage); |
310 |
this._pages.push(ipage); |
| 315 |
|
311 |
|
| 316 |
// connect to valuesChanged callback of every page |
312 |
// connect to valuesChanged callback of every page |
| 317 |
ipage.setValues(values); |
|
|
| 318 |
ipage.on('valuesChanged', lang.hitch(this, 'updateAllValues')); |
313 |
ipage.on('valuesChanged', lang.hitch(this, 'updateAllValues')); |
| 319 |
|
314 |
|
| 320 |
// hide tab if page is not visible |
315 |
// hide tab if page is not visible |
|
Lines 331-336
Link Here
|
| 331 |
} |
326 |
} |
| 332 |
|
327 |
|
| 333 |
this.startup(); |
328 |
this.startup(); |
|
|
329 |
this.setValues(values); |
| 334 |
this.standby(false); |
330 |
this.standby(false); |
| 335 |
}, |
331 |
}, |
| 336 |
|
332 |
|