From ca8de9599228215a4eaf23bbdfa6a89658ab5765 Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Fri, 20 May 2016 08:43:15 +0200 Subject: [PATCH] OO-1593: add drag and drop to graphicGapMatchInteraction --- src/main/webapp/static/js/jquery/qti/jquery.graphicGap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/jquery/qti/jquery.graphicGap.js b/src/main/webapp/static/js/jquery/qti/jquery.graphicGap.js index 2b07b01a156..287ddf082e3 100644 --- a/src/main/webapp/static/js/jquery/qti/jquery.graphicGap.js +++ b/src/main/webapp/static/js/jquery/qti/jquery.graphicGap.js @@ -70,11 +70,11 @@ } gapitem.removeClass('oo-choosed'); - var gapitemId = gapitem.attr('id'); + var gapitemIdentifier = gapitem.data('qti-id'); //remove jQuery('#' + containerId).find("input[type='hidden']").each(function(index, el) { var value = jQuery(el).val(); - if(value.indexOf(gapitemId + ' ') == 0) { + if(value.indexOf(gapitemIdentifier + ' ') == 0) { jQuery(el).remove(); } }); -- GitLab