mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
I generally don't like this sort of state variable, but I don't see a better solution. The codepath is that when you start out on the subscriptions page and then click one of the left sidebar links to narrow to something: (1) hashchanged() would call ui.change_tab (2) ui.change_tab triggers a gear change event (3) The ui.js gear-changed event handler updates the hash Resulting in the hash ending up at "#". Since there's no easy way to pass arguments through to the event handler, we just use a global variable inside hash_change.js to track whether we're currently handling a hashchange event. (imported from commit 7bb905a223b5539240fc36de7896ee8074ebc62e) |
||
|---|---|---|
| .. | ||
| fixtures | ||
| lib | ||
| management | ||
| migrations | ||
| static | ||
| tests | ||
| __init__.py | ||
| context_processors.py | ||
| decorator.py | ||
| filters.py | ||
| forms.py | ||
| handlers.py | ||
| middleware.py | ||
| models.py | ||
| openid.py | ||
| retention_policy.py | ||
| tests.py | ||
| tornado_callbacks.py | ||
| tornadoviews.py | ||
| views.py | ||