|
@@ -24,6 +24,9 @@ function MarkBoard(option) {
|
|
|
this.markControl.on('task.load.finish', this, function(event, context, eventObject) {
|
|
|
this.initByTask(context.task);
|
|
|
});
|
|
|
+ this.markControl.on('history.submit.success', this, function(event, context, eventObject) {
|
|
|
+ this.initByTask(context.task);
|
|
|
+ });
|
|
|
this.markControl.on('mark.focus.change', this, function(event, context, eventObject) {
|
|
|
this.onFocusChange();
|
|
|
});
|
|
@@ -420,6 +423,9 @@ MarkBoard.prototype.allZeroSubmit = function() {
|
|
|
for (var i in this.stepList) {
|
|
|
this.stepList[i].markScore = 0;
|
|
|
}
|
|
|
+ for (var i in this.task.markStepList) {
|
|
|
+ this.task.markStepList[i].markScore = 0;
|
|
|
+ }
|
|
|
this.onTaskSubmit();
|
|
|
}
|
|
|
}
|