remove dragover on drop, too
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 18 Jan 2013 12:49:22 +0000 (13:49 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Fri, 18 Jan 2013 12:49:22 +0000 (13:49 +0100)
redakcja/static/edumed/js/edumed.coffee
redakcja/static/edumed/js/edumed.js

index dae80f8..75624ae 100644 (file)
@@ -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
index 9d22b64..d8f3d94 100644 (file)
           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);