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