mirror of https://github.com/zulip/zulip.git
4f6658e98d
If highlight_toggle is called before activate_section_or_default, then 3 hash change event take place for single hash change. For example if hash is changed from "#settings/profile" in the browser to "#organization/organization-permissions", then the cycle is- "#settings/profile" -> "#organization/organization-profile" -> "#organization/organization-permissions". This is because "highlight_toggle" also leads to call of "activate_section_or_default" with section as default section (i.e. organization-profile) then the correct section is opened again as activate_section_or_default is called in hashchange.js after highlight_toggle. The middle hash of the above example depends on the last open section in organization area or is the default section which is "organization-profile" when overlay is opened first time after reload. This is also consistent with the code for opening overlay from gear menu where "highlight_toggle" is called later. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |