From d9bec7e66b9e33e3aca3cca1abd78e9151b5d03a Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 18 Jan 2013 13:49:22 +0100 Subject: [PATCH] remove dragover on drop, too --- 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 dae80f84..75624ae7 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -116,7 +116,7 @@ class Excercise extends Binding return is_accepted drop: (ev, ui) -> - $(ev.target).removeClass 'accepting' + $(ev.target).removeClass 'accepting dragover' added = $(ui.draggable).clone() $added = added diff --git a/redakcja/static/edumed/js/edumed.js b/redakcja/static/edumed/js/edumed.js index 9d22b645..d8f3d946 100644 --- a/redakcja/static/edumed/js/edumed.js +++ b/redakcja/static/edumed/js/edumed.js @@ -153,7 +153,7 @@ drop: function(ev, ui) { var $added, added, _this = this; - $(ev.target).removeClass('accepting'); + $(ev.target).removeClass('accepting dragover'); added = $(ui.draggable).clone(); $added = added; $added.data("original", ui.draggable); -- 2.20.1