From: Marcin Koziej Date: Mon, 11 Feb 2013 10:32:50 +0000 (+0100) Subject: fix prawdafalsz - show responses X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/22f04fb4b3e8521af673554c2f51b7ec47940019?ds=sidebyside fix prawdafalsz - show responses --- diff --git a/redakcja/static/edumed/js/edumed.coffee b/redakcja/static/edumed/js/edumed.coffee index 59430a29..afe75d0c 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -454,7 +454,7 @@ class PrawdaFalsz extends Exercise return [good, all] show_solutions: -> - reset() + @reset() for qp in $(".question-piece", @element) if $(qp).data('solution') == 'true' $(".true", 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) diff --git a/redakcja/static/edumed/js/edumed.js b/redakcja/static/edumed/js/edumed.js index e3878be5..c8e37c36 100644 --- a/redakcja/static/edumed/js/edumed.js +++ b/redakcja/static/edumed/js/edumed.js @@ -604,7 +604,7 @@ PrawdaFalsz.prototype.show_solutions = function() { var qp, _i, _len, _ref, _results; - reset(); + this.reset(); _ref = $(".question-piece", this.element); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) {