diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-11 09:33:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-11 09:33:27 +0200 |
commit | 8c01e45d6b6d57032e78c6c28877b99c28cf73de (patch) | |
tree | 13c39d118b1e044e13b17586c2a4d1ec6e8bdc24 | |
parent | a045f3c4d7ef606ea302712952ec474d5ea5637a (diff) | |
download | nextcloud-server-8c01e45d6b6d57032e78c6c28877b99c28cf73de.tar.gz nextcloud-server-8c01e45d6b6d57032e78c6c28877b99c28cf73de.zip |
Do reload shared views
Fixes #4248
The magic introduced in #3686 caused the shared views not to be updated
properly. Thus we just overwrite the _onUrlChange method in the
sharedfilelist.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index dccd6027b02..326bd1b5bf8 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -382,6 +382,12 @@ // Sort by expected sort comparator return files.sort(this._sortComparator); + }, + + _onUrlChanged: function(e) { + if (e && _.isString(e.dir)) { + this.changeDirectory(e.dir, false, true); + } } }); |