Browse Source

Properly reload file list on share accept

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/18222/head
John Molakvoæ (skjnldsv) 6 years ago
parent
commit
f3cdf7e4c1
No known key found for this signature in database GPG Key ID: 60C25B8C072916CF
  1. 7
      apps/files/js/filelist.js

7
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));

Loading…
Cancel
Save