From d86c1e95030ebd613348f36d62984ecd842c2618 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 20 Jun 2018 20:32:19 +0200 Subject: Disable sidebar on deleted share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files_sharing/js/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/files_sharing/js/app.js') diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js index 01857e4f262..f63410bc9bf 100644 --- a/apps/files_sharing/js/app.js +++ b/apps/files_sharing/js/app.js @@ -194,11 +194,11 @@ OCA.Sharing.App = { actionHandler: function(fileName, context) { var shareId = context.$file.data('shareId'); $.post(OC.linkToOCS('apps/files_sharing/api/v1/deletedshares', 2) + shareId) - .success(function(result) { - context.fileList.remove(context.fileInfoModel.attributes.name); - }).fail(function() { - OC.Notification.showTemporary(t('files_sharing', 'Something happened. Unable to restore the share.')); - }); + .success(function(result) { + context.fileList.remove(context.fileInfoModel.attributes.name); + }).fail(function() { + OC.Notification.showTemporary(t('files_sharing', 'Something happened. Unable to restore the share.')); + }); } }); return fileActions; -- cgit v1.2.3