mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Support informational overlays in hashchange system.
This helps the !modal_link links in our tutorial messages. Fixes #5206.
This commit is contained in:
@@ -149,6 +149,15 @@ function do_hashchange(from_reload) {
|
|||||||
case "#streams":
|
case "#streams":
|
||||||
ui_util.change_tab_to("#streams");
|
ui_util.change_tab_to("#streams");
|
||||||
break;
|
break;
|
||||||
|
case "#keyboard-shortcuts":
|
||||||
|
ui.show_info_overlay("keyboard-shortcuts");
|
||||||
|
break;
|
||||||
|
case "#markdown-help":
|
||||||
|
ui.show_info_overlay("markdown-help");
|
||||||
|
break;
|
||||||
|
case "#search-operators":
|
||||||
|
ui.show_info_overlay("search-operators");
|
||||||
|
break;
|
||||||
case "#drafts":
|
case "#drafts":
|
||||||
ui_util.change_tab_to("#drafts");
|
ui_util.change_tab_to("#drafts");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -145,7 +145,9 @@ exports.show_info_overlay = function (target) {
|
|||||||
overlays.open_overlay({
|
overlays.open_overlay({
|
||||||
name: 'informationalOverlays',
|
name: 'informationalOverlays',
|
||||||
overlay: overlay,
|
overlay: overlay,
|
||||||
on_close: function () {},
|
on_close: function () {
|
||||||
|
hashchange.changehash("");
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user