From 7b6432f1346c35781d059fe2da44e8e717eafc1b Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 12 Oct 2017 18:20:33 +0200 Subject: [PATCH] Lint --- www/drive/inner.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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')