Add: regist minus record for typing exam
This commit is contained in:
@@ -149,6 +149,7 @@ DBService.prototype.requestWritingInfo = function(writingID, onSucceededListener
|
||||
|
||||
// typing exam
|
||||
DBService.prototype.addPrevHourTypingExamRecord = function(writingID, record, onSucceededListener, onFailedListener) {
|
||||
// addPrevHourTypingExamRecord is for only TDD
|
||||
var xhr = this.makeXhr(
|
||||
"php/record/update_typing_exam_record.php",
|
||||
(function() { // onreadystatechange
|
||||
|
||||
@@ -365,6 +365,8 @@ TypingExamination.prototype.startGame = function() {
|
||||
TypingExamination.prototype.timeOver = function() {
|
||||
var timeOverText = new TimeOverText();
|
||||
sessionStorageManager.setRecord(-1 * this.typingRecordTotal);
|
||||
if(!isExperienceMaestroAccount())
|
||||
this.updateResultRecord();
|
||||
|
||||
this.stopAndGoResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user