zulip/static
sahil839 4f6658e98d hashchange: Call highlight_toggle after activate_section_or_default.
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.
2021-07-01 17:49:04 -07:00
..
assets zulip-icon: Add `zulip-icon` as classPrefix for icon. 2021-04-29 09:02:25 -07:00
audio
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images integrations: Add Freshstatus webhook integration. 2021-05-27 23:38:11 -07:00
js hashchange: Call highlight_toggle after activate_section_or_default. 2021-07-01 17:49:04 -07:00
shared shared: Bump version to 0.0.6. 2021-06-15 14:40:58 -07:00
styles popovers: Add clear input button to stream search widget. 2021-07-01 14:30:31 -07:00
templates settings_checkbox: Fix incorrect line wrapping in mobile view. 2021-07-01 17:46:26 -07:00
third minor: Simplify `usermention` regex and properly use capturing groups. 2021-05-20 11:35:04 -07:00
.gitignore