]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove event handler no longer needed
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 19 Oct 2018 18:33:05 +0000 (20:33 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 23 Oct 2018 14:44:29 +0000 (16:44 +0200)
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>
apps/files/js/favoritesfilelist.js
apps/files_sharing/js/sharedfilelist.js

index 8c9c125d0a173ba8a593d6db5175a94aa5c2400a..44adf5d7b5b83002460845c68b9bfab77cbdf3fb 100644 (file)
@@ -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;
index 3a6de0d5012d592e015ceb1849969961cc7377e9..c7a4d2b6d1156547a2e55e74d6c9c4b84171d09d 100644 (file)
                        // Sort by expected sort comparator
                        return files.sort(this._sortComparator);
                },
-
-               _onUrlChanged: function(e) {
-                       if (e && _.isString(e.dir)) {
-                               this.changeDirectory(e.dir, false, true);
-                       }
-               }
        });
 
        /**