X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3e4d96cd7fdd08910887be91ead79e446a96fe53..9258b2e0b32269e543149412ae742ab1fe2f44a8:/redakcja/static/edumed/js/edumed.coffee diff --git a/redakcja/static/edumed/js/edumed.coffee b/redakcja/static/edumed/js/edumed.coffee index 59430a29..9c3b3dfc 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -454,9 +454,9 @@ class PrawdaFalsz extends Exercise return [good, all] show_solutions: -> - reset() + @reset() for qp in $(".question-piece", @element) - if $(qp).data('solution') == 'true' + if $(qp).data('solution') == true $(".true", qp).click() else $(".false", qp).click() @@ -488,4 +488,4 @@ $(document).ready () -> new EduModule($("#book-text")) $(".exercise").each (i, el) -> - exercise(this) \ No newline at end of file + exercise(this)