Commit d24ae503 authored by techird's avatar techird

ff compalitity

parent d8823e40
......@@ -143,6 +143,7 @@
padding: 0;
list-style: none;
overflow: auto;
overflow-x: hidden;
.empty {
height: 50px;
line-height: 50px;
......
......@@ -240,15 +240,16 @@ KityMinder.registerUI('widget/netdiskfinder', function(minder) {
if (!$target.hasClass('file-list-item')) {
return;
}
event.dataTransfer.effectAllowed = "move";
event.dataTransfer.setDragImage($target.find('.icon').get(0), 12, 12);
e.originalEvent.dataTransfer.effectAllowed = "move";
e.originalEvent.dataTransfer.setData('text/plain', 'test');
e.originalEvent.dataTransfer.setDragImage($target.find('.icon').get(0), 12, 12);
$dragging = $target.addClass('dragging');
$finder.addClass('drop-mode');
}
function itemDragEnd(e) {
$(e.target).removeClass('dragging');
event.dataTransfer.dropEffect = 'move';
e.originalEvent.dataTransfer.dropEffect = 'move';
e.preventDefault();
$finder.removeClass('drop-mode');
}
......
Markdown is supported
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