From 5c7bc1d4380a5c51f13aa274cbea211e4a444a9e Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 13 Feb 2013 15:18:34 +0100 Subject: [PATCH] data() considered harmful --- catalogue/static/catalogue/js/edumed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/static/catalogue/js/edumed.js b/catalogue/static/catalogue/js/edumed.js index 2c5e308..17d485f 100644 --- a/catalogue/static/catalogue/js/edumed.js +++ b/catalogue/static/catalogue/js/edumed.js @@ -493,7 +493,7 @@ _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; } } -- 2.20.1