Skip to content

Harmonize getAnswerGiven with other content types#32

Open
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:harmonize-get-answer-given
Open

Harmonize getAnswerGiven with other content types#32
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:harmonize-get-answer-given

Conversation

@otacke

@otacke otacke commented Jul 4, 2019

Copy link
Copy Markdown
Contributor

The function getAnswerGiven should report true if an answer has been given.
Other content types return true if either an answer has been given explicitly
or nothing has been answered explicity, but "check" has been clicked.

True-False did not do the latter. In Course Presentation, this led to inconsistent behavior in the navigation bar. Other content types would report true when clicking on the check button even without giving an answer and the dot on the slide's navigation bar would be filled. It would not be filled for TrueFalse however if no answer was chosen before clicking on the check button.

otacke added 2 commits July 4, 2019 18:21
The function getAnswerGiven should report true if an answer has been given.
Other content types return true if either an answer has been given explicitly
or nothing has been answered explicity, but "check" has been clicked.
True-False did not do the latter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant