summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d2a23283f12..c97faaa7041 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -364,6 +364,13 @@
this.$el.on('show', this._onResize);
+ // reload files list on share accept
+ $('body').on('OCA.Notification.Action', function(eventObject) {
+ if (eventObject.notification.app === 'files_sharing' && eventObject.action.type === 'POST') {
+ self.reload()
+ }
+ });
+
this.updateSearch();
this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this));