diff --git a/www/drive/inner.js b/www/drive/inner.js index 689627454..3f5320377 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -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')