Skip to content

Commit f4de01a

Browse files
committed
Revert "Merge pull request #26 from SergeyYukhnevich/add-configuration-for-check-button"
This reverts commit b9901e1, reversing changes made to 7b1bff3.
1 parent 194200d commit f4de01a

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

js/multichoice.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ H5P.MultiChoice = function (options, contentId, contentData) {
101101
noInput: 'Input is required before viewing the solution'
102102
},
103103
behaviour: {
104-
enableCheck: true,
105104
enableRetry: true,
106105
enableSolutionsButton: true,
107106
type: 'auto',
@@ -613,7 +612,7 @@ H5P.MultiChoice = function (options, contentId, contentData) {
613612
}, false);
614613

615614
// Check solution button
616-
if (params.behaviour.enableCheck && (!params.behaviour.autoCheck || !params.behaviour.singleAnswer)) {
615+
if (!params.behaviour.autoCheck || !params.behaviour.singleAnswer) {
617616
self.addButton('check-answer', params.UI.checkAnswerButton,
618617
function () {
619618
self.answered = true;

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"contentType": "Question",
44
"majorVersion": 1,
55
"minorVersion": 9,
6-
"patchVersion": 4,
6+
"patchVersion": 3,
77
"runnable": 1,
88
"machineName": "H5P.MultiChoice",
99
"author": "Joubel",

semantics.json

-8
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,6 @@
287287
"description": "These options will let you control how the task behaves.",
288288
"optional": true,
289289
"fields": [
290-
{
291-
"name": "enableCheck",
292-
"type": "boolean",
293-
"label": "Enable \"Check\" button",
294-
"importance": "low",
295-
"default": true,
296-
"optional": true
297-
},
298290
{
299291
"name": "enableRetry",
300292
"type": "boolean",

0 commit comments

Comments
 (0)