From: Marcin Koziej Date: Fri, 25 Jan 2013 11:29:56 +0000 (+0100) Subject: use attr instead of data X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7c7e68c348f0cdcb41aa76685fe2f519b8300eac?ds=sidebyside use attr instead of data --- diff --git a/redakcja/static/edumed/js/edumed.coffee b/redakcja/static/edumed/js/edumed.coffee index db198085..0fd39d9a 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -376,7 +376,7 @@ class Przyporzadkuj extends Excercise mandatory = v[0] optional = v[1] all_multiple += mandatory.length + optional.length - pn = pred.data('predicate') + pn = pred.attr('data-predicate') if mandatory.indexOf(pn) >= 0 or optional.indexOf(pn) >= 0 count += 1 @piece_correct qp diff --git a/redakcja/static/edumed/js/edumed.js b/redakcja/static/edumed/js/edumed.js index 803eb042..b601128c 100644 --- a/redakcja/static/edumed/js/edumed.js +++ b/redakcja/static/edumed/js/edumed.js @@ -502,7 +502,7 @@ mandatory = v[0]; optional = v[1]; all_multiple += mandatory.length + optional.length; - pn = pred.data('predicate'); + pn = pred.attr('data-predicate'); if (mandatory.indexOf(pn) >= 0 || optional.indexOf(pn) >= 0) { count += 1; this.piece_correct(qp);