Commit d24ae503 authored by techird's avatar techird

ff compalitity

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