diff --git a/library.json b/library.json index ed9fc85..52660a5 100644 --- a/library.json +++ b/library.json @@ -4,7 +4,7 @@ "machineName": "H5P.TrueFalse", "majorVersion": 1, "minorVersion": 1, - "patchVersion": 3, + "patchVersion": 4, "runnable": 1, "license": "MIT", "author": "Joubel", diff --git a/scripts/h5p-true-false.js b/scripts/h5p-true-false.js index 05e43c0..411cacd 100644 --- a/scripts/h5p-true-false.js +++ b/scripts/h5p-true-false.js @@ -55,6 +55,7 @@ H5P.TrueFalse = (function ($, Question) { correctAnswerMessage: 'Correct answer' }, behaviour: { + enableCheck: true, enableRetry: true, enableSolutionsButton: true, disableImageZooming: false, @@ -112,7 +113,7 @@ H5P.TrueFalse = (function ($, Question) { } // Check button - if (!params.behaviour.autoCheck) { + if (params.behaviour.enableCheck && !params.behaviour.autoCheck) { self.addButton(Button.CHECK, params.l10n.checkAnswer, function () { checkAnswer(); triggerXAPIAnswered(); diff --git a/semantics.json b/semantics.json index a5dd1c8..fbb2d2b 100644 --- a/semantics.json +++ b/semantics.json @@ -127,6 +127,14 @@ "importance": "low", "description": "These options will let you control how the task behaves.", "fields": [ + { + "name": "enableCheck", + "type": "boolean", + "label": "Enable \"Check\" button", + "importance": "low", + "default": true, + "optional": true + }, { "name": "enableRetry", "type": "boolean",