fix typo
[redakcja.git] / redakcja / static / edumed / js / edumed.js
index 2c5e308..f720aca 100644 (file)
       _ref = $(".question-piece", this.element);
       for (_i = 0, _len = _ref.length; _i < _len; _i++) {
         qp = _ref[_i];
-        if ($(qp).data('solution').split(/[ ,]+/).length > 1) {
+        if ($(qp).attr('data-solution').split(/[ ,]+/).length > 1) {
           return true;
         }
       }
       count = 0;
       all = 0;
       if (!minimum) {
-        all = $(".subjects .question-piece", question).length;
+        all = $(".subject .question-piece", question).length;
       }
       _ref = $(".predicate [data-predicate]", question);
       for (_i = 0, _len = _ref.length; _i < _len; _i++) {