Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <[email protected]>
  • Loading branch information
danxuliu committed Oct 21, 2018
commit 0426ba6de5c367a07414a5dbf54e1774d83d8803
6 changes: 0 additions & 6 deletions apps/files/js/favoritesfilelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions apps/files_sharing/js/sharedfilelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,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);
}
}
});

/**
Expand Down