Commit 3dd22206 authored by bbaer's avatar bbaer
Browse files

Slight improvement with constant firing of events

parent 17380c53
......@@ -87,6 +87,7 @@ var QfqNS = QfqNS || {};
e.stopPropagation();
that._dropHandler(e);
});
$dropZone.css("z-index", 5);
that.dropZones.push($dropZone);
});
};
......@@ -107,6 +108,8 @@ var QfqNS = QfqNS || {};
n.DragAndDrop.prototype._handleDragEnter = function(event) {
var $tempObject = $("#" + this.draggedId).clone();
$tempObject.css("opacity", 0.5);
$tempObject.css("z-index", 0);
$tempObject.off();
if (this.$tempObject[0]) {
if ($tempObject[0].id !== this.$tempObject[0].id) {
this.$tempObject = $tempObject;
......
......@@ -90,6 +90,7 @@
</div>
</div>
<hr>
<h2>Playing with baskets</h2>
<div class="qfq-dnd" style="margin-top: 20px;"
data-dnd-api="http://somethingelse/bla"c
data-dnd-dropzone="someClass"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment