From 2860ce027ab0d458bbcc5841d5b7cb8c7eae03e9 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez <danxuliu@gmail.com> Date: Fri, 18 Aug 2017 14:08:51 +0200 Subject: Remove "errorThrown" parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the "fail" callback is called, "errorThrown" is a property of the data object instead of a parameter. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> --- apps/files_sharing/js/files_drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js index f1fc71c6ce2..b3956948ee4 100644 --- a/apps/files_sharing/js/files_drop.js +++ b/apps/files_sharing/js/files_drop.js @@ -101,7 +101,7 @@ var fileIcon = '<img src="' + escapeHTML(mimeTypeUrl) + '"/> ' + fileName; Drop.setFileIcon(fileName,fileIcon); }, - fail: function(e, data, errorThrown) { + fail: function(e, data) { OC.Notification.showTemporary(OC.L10N.translate( 'files_sharing', 'Could not upload "{filename}"', -- cgit v1.2.3