aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/app.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-20 20:32:19 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-05 12:43:57 +0200
commitd86c1e95030ebd613348f36d62984ecd842c2618 (patch)
treeeccc74b0e3510ea60bf1cdb3ae93466ecfe1e49b /apps/files_sharing/js/app.js
parent3b835d8076c844adde1014e994256740c790857b (diff)
downloadnextcloud-server-d86c1e95030ebd613348f36d62984ecd842c2618.tar.gz
nextcloud-server-d86c1e95030ebd613348f36d62984ecd842c2618.zip
Disable sidebar on deleted share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/js/app.js')
-rw-r--r--apps/files_sharing/js/app.js10
1 files changed, 5 insertions, 5 deletions
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;