|
Lines 929-935
define([
Link Here
|
| 929 |
} |
929 |
} |
| 930 |
|
930 |
|
| 931 |
// start finishing the exam |
931 |
// start finishing the exam |
| 932 |
var info = this.get('roomInfo') || {}; |
932 |
var info = lang.clone(this.get('roomInfo') || {}); |
| 933 |
this.umcpCommand('schoolexam/exam/finish', { |
933 |
this.umcpCommand('schoolexam/exam/finish', { |
| 934 |
exam: info.exam, |
934 |
exam: info.exam, |
| 935 |
room: info.room |
935 |
room: info.room |
|
Lines 944-949
define([
Link Here
|
| 944 |
deferred.resolve(); |
944 |
deferred.resolve(); |
| 945 |
}); |
945 |
}); |
| 946 |
|
946 |
|
|
|
947 |
// reset room settings (prior to finishing the exam!) |
| 948 |
this._settingsDialog.reset(); |
| 949 |
this._settingsDialog.save(); |
| 950 |
|
| 947 |
// things to do after finishing the exam |
951 |
// things to do after finishing the exam |
| 948 |
deferred.then(lang.hitch(this, function() { |
952 |
deferred.then(lang.hitch(this, function() { |
| 949 |
return this.umcpCommand('computerroom/exam/finish', { |
953 |
return this.umcpCommand('computerroom/exam/finish', { |
|
Lines 959-967
define([
Link Here
|
| 959 |
delete info.examEndTime; |
963 |
delete info.examEndTime; |
| 960 |
this.set('roomInfo', info); |
964 |
this.set('roomInfo', info); |
| 961 |
|
965 |
|
| 962 |
// reset room settings |
|
|
| 963 |
this._settingsDialog.reset(); |
| 964 |
this._settingsDialog.save(); |
| 965 |
} |
966 |
} |
| 966 |
})); |
967 |
})); |
| 967 |
})); |
968 |
})); |