Clean up presave.js (Max score calculation)

pull/35/head
Paal Joergensen 2018-08-21 13:52:11 +02:00
parent e37d7c5234
commit 6f7c1b7fcc
1 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,7 @@ H5PPresave['H5P.QuestionSet'] = function (content, finished) {
var presave = H5PEditor.Presave;
if (isContentInvalid()) {
throw new presave.exceptions.InvalidContentSemanticsException('Invalid Question Set Error')
throw new presave.exceptions.InvalidContentSemanticsException('Invalid Question Set Error');
}
var score = content.questions
@ -30,9 +30,7 @@ H5PPresave['H5P.QuestionSet'] = function (content, finished) {
presave.validateScore(score);
if (finished) {
finished({maxScore: score});
}
finished({maxScore: score});
/**
* Check if required parameters is present