|
Lines 642-665
define([
Link Here
|
| 642 |
// start the exam |
642 |
// start the exam |
| 643 |
var values = this.getValues(); |
643 |
var values = this.getValues(); |
| 644 |
var preparationDeferred = new Deferred(); |
644 |
var preparationDeferred = new Deferred(); |
| 645 |
this.umcpCommand('schoolexam/exam/start', values).then(undefined, function() { |
645 |
this.standbyDuring(this.umcpCommand('schoolexam/exam/start', values)).then(lang.hitch(this, function() { |
|
|
646 |
this.standby(true, this._progressBar); |
| 647 |
this._progressBar.auto( |
| 648 |
'schoolexam/progress', |
| 649 |
{}, |
| 650 |
lang.hitch(this, '_preparationFinished', preparationDeferred), |
| 651 |
undefined, |
| 652 |
undefined, |
| 653 |
true, |
| 654 |
preparationDeferred |
| 655 |
); |
| 656 |
}), function() { |
| 646 |
preparationDeferred.cancel(); |
657 |
preparationDeferred.cancel(); |
| 647 |
}); |
658 |
}); |
| 648 |
|
659 |
|
| 649 |
// initiate the progress bar |
660 |
// initiate the progress bar |
| 650 |
this._progressBar.reset(_('Starting the configuration process...' )); |
661 |
this._progressBar.reset(_('Starting the configuration process...' )); |
| 651 |
this.standby(false); |
|
|
| 652 |
this.standby(true, this._progressBar); |
| 653 |
this._progressBar.auto( |
| 654 |
'schoolexam/progress', |
| 655 |
{}, |
| 656 |
lang.hitch(this, '_preparationFinished', preparationDeferred), |
| 657 |
undefined, |
| 658 |
undefined, |
| 659 |
true, |
| 660 |
preparationDeferred |
| 661 |
); |
| 662 |
|
| 663 |
preparationDeferred.then(lang.hitch(this, function() { |
662 |
preparationDeferred.then(lang.hitch(this, function() { |
| 664 |
// everything fine open the computerroom and close the exam wizard |
663 |
// everything fine open the computerroom and close the exam wizard |
| 665 |
this.standby(false); |
664 |
this.standby(false); |