summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-04 11:18:55 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-04 11:29:04 +0100
commitf3cdf7e4c1654bfa2807a284c5ccf14e161d3201 (patch)
treea40579f5a31e6def4d41be644a74b7a9aaaf7a9f /apps
parent19935a6a26d70e0a7e9ee757f8519a11179bf1fd (diff)
downloadnextcloud-server-f3cdf7e4c1654bfa2807a284c5ccf14e161d3201.tar.gz
nextcloud-server-f3cdf7e4c1654bfa2807a284c5ccf14e161d3201.zip
Properly reload file list on share accept
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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));