X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/723f0aeedb81b9aabb213d5e8b74653e73a9eb38..c63cb9e4a92378f9a630f95faa3d4d167e7aa8ec:/redakcja/static/edumed/js/edumed.coffee diff --git a/redakcja/static/edumed/js/edumed.coffee b/redakcja/static/edumed/js/edumed.coffee index 4cf17aac..6fce16bf 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -375,7 +375,7 @@ class Zastap extends Exercise class Przyporzadkuj extends Exercise is_multiple: -> for qp in $(".question-piece", @element) - if $(qp).data('solution').split(/[ ,]+/).length > 1 + if $(qp).attr('data-solution').split(/[ ,]+/).length > 1 return true return false @@ -396,7 +396,7 @@ class Przyporzadkuj extends Exercise count = 0 all = 0 if not minimum - all = $(".subjects .question-piece", question).length + all = $(".subject .question-piece", question).length for pred in $(".predicate [data-predicate]", question) pn = $(pred).attr('data-predicate')