mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +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":
|
||||
ui_util.change_tab_to("#streams");
|
||||
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":
|
||||
ui_util.change_tab_to("#drafts");
|
||||
break;
|
||||
|
||||
@@ -145,7 +145,9 @@ exports.show_info_overlay = function (target) {
|
||||
overlays.open_overlay({
|
||||
name: 'informationalOverlays',
|
||||
overlay: overlay,
|
||||
on_close: function () {},
|
||||
on_close: function () {
|
||||
hashchange.changehash("");
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user