From 22f04fb4b3e8521af673554c2f51b7ec47940019 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 11 Feb 2013 11:32:50 +0100 Subject: [PATCH] fix prawdafalsz - show responses --- redakcja/static/edumed/js/edumed.coffee | 4 ++-- redakcja/static/edumed/js/edumed.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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++) { -- 2.20.1