From 7c7e68c348f0cdcb41aa76685fe2f519b8300eac Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 25 Jan 2013 12:29:56 +0100 Subject: [PATCH] use attr instead of data --- redakcja/static/edumed/js/edumed.coffee | 2 +- redakcja/static/edumed/js/edumed.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1