From: Marcin Koziej Date: Fri, 18 Jan 2013 12:49:22 +0000 (+0100) Subject: remove dragover on drop, too X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/d9bec7e66b9e33e3aca3cca1abd78e9151b5d03a remove dragover on drop, too --- 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);