mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
hashchange: Go through hashchange to narrow to All messsages.
We should not allow every function who wants to narrow to All messages to come up with their own method to do so. This commit makes existing such functions use hashchange library to do so. Remove click event on All message button, it already contains an <a> tag which navigates correctly.
This commit is contained in:
@@ -569,16 +569,6 @@ exports.initialize = function () {
|
||||
|
||||
// HOME
|
||||
|
||||
$(document).on("click", ".top_left_all_messages", (e) => {
|
||||
ui_util.change_tab_to("#home");
|
||||
narrow.deactivate();
|
||||
search.update_button_visibility();
|
||||
// We need to maybe scroll to the selected message
|
||||
// once we have the proper viewport set up
|
||||
setTimeout(navigate.maybe_scroll_to_selected, 0);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(".brand").on("click", (e) => {
|
||||
if (overlays.is_active()) {
|
||||
overlays.close_active();
|
||||
|
||||
Reference in New Issue
Block a user