Merge branch 'edumed' of https://github.com/fnp/redakcja into edumed
authorLibrary Admin <librarian@szo.nowoczesnapolska.org.pl>
Wed, 9 Jan 2013 10:08:23 +0000 (11:08 +0100)
committerLibrary Admin <librarian@szo.nowoczesnapolska.org.pl>
Wed, 9 Jan 2013 10:08:23 +0000 (11:08 +0100)
lib/librarian
redakcja/static/edumed/js/edumed.coffee
redakcja/static/edumed/js/edumed.js

index 79da344..36ded31 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 79da3449684beeb938735346e1d66093f51ba36d
+Subproject commit 36ded31bc121ec258d35bd209d9da93224f773aa
index 4bd8bed..ec1bcd0 100644 (file)
@@ -34,7 +34,7 @@ class Excercise extends Binding
 
   check: ->
     scores = []
-    $(".question").each (i, question) =>
+    $(".question", @element).each (i, question) =>
       scores.push(@check_question question)
 
     score = [0, 0]
index a48e19a..8948380 100644 (file)
@@ -64,7 +64,7 @@
       var score, scores,
         _this = this;
       scores = [];
-      $(".question").each(function(i, question) {
+      $(".question", this.element).each(function(i, question) {
         return scores.push(_this.check_question(question));
       });
       score = [0, 0];