summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-19 20:33:05 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-10-23 17:03:37 +0200
commitbc7e8cb362e7bff43bc77689b8c040c38015c189 (patch)
tree5cbd1d8225371c3b3a3dc92cc3ce88520927f727 /apps
parent4f5b072c74dd508bac685b170a74e3d43b865134 (diff)
downloadnextcloud-server-bc7e8cb362e7bff43bc77689b8c040c38015c189.tar.gz
nextcloud-server-bc7e8cb362e7bff43bc77689b8c040c38015c189.zip
Remove event handler no longer needed
The custom handler for "URL changed" events were added to reload the file list whenever the sections for favorites and shares were opened; this was used to fix the problem of not reloading the file lists when opening them for a second time. However, besides that the handlers were not really necessary, and as the root of the bug was fixed in the previous commit those handlers are now removed. The file list for tags uses the handler for a different purpose, though, so that one was kept. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/favoritesfilelist.js6
-rw-r--r--apps/files_sharing/js/sharedfilelist.js6
2 files changed, 0 insertions, 12 deletions
diff --git a/apps/files/js/favoritesfilelist.js b/apps/files/js/favoritesfilelist.js
index 8c9c125d0a1..44adf5d7b5b 100644
--- a/apps/files/js/favoritesfilelist.js
+++ b/apps/files/js/favoritesfilelist.js
@@ -94,12 +94,6 @@ $(document).ready(function() {
return OCA.Files.FileList.prototype.reloadCallback.call(this, status, result);
},
-
- _onUrlChanged: function (e) {
- if (e && _.isString(e.dir)) {
- this.changeDirectory(e.dir, false, true);
- }
- }
});
OCA.Files.FavoritesFileList = FavoritesFileList;
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index bd33035aa9c..2c4a32c6979 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -393,12 +393,6 @@
// Sort by expected sort comparator
return files.sort(this._sortComparator);
},
-
- _onUrlChanged: function(e) {
- if (e && _.isString(e.dir)) {
- this.changeDirectory(e.dir, false, true);
- }
- }
});
/**