pull/1/head
yflory 7 years ago
parent 6926d42292
commit 7b6432f134

@ -1037,13 +1037,6 @@ define([
ev.dataTransfer.setData("text", stringify(data));
};
var onFileDrop = APP.onFileDrop = function (file, e) {
var ev = {
target: e.target,
path: findDropPath(e.target)
};
APP.FM.onFileDrop(file, ev);
};
var findDropPath = function (target) {
var $target = $(target);
var $el = findDataHolder($target);
@ -1054,6 +1047,13 @@ define([
}
return newPath;
};
var onFileDrop = APP.onFileDrop = function (file, e) {
var ev = {
target: e.target,
path: findDropPath(e.target)
};
APP.FM.onFileDrop(file, ev);
};
var onDrop = function (ev) {
ev.preventDefault();
$('.cp-app-drive-element-droppable').removeClass('cp-app-drive-element-droppable');
@ -2851,7 +2851,7 @@ define([
var fmConfig = {
noHandlers: true,
onUploaded: function (ev, data) {
onUploaded: function () {
refresh();
},
body: $('body')

Loading…
Cancel
Save