zulip/zephyr
Tim Abbott fa239ea270 hashchange: Don't change the hash when called from hashchange code.
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)
2013-04-03 14:49:32 -04:00
..
fixtures Add github fixtures file 2013-04-02 14:21:58 -04:00
lib Use IANA's TLD list for auto-linkification detecting 2013-04-03 09:58:17 -04:00
management Remove User migration tools. 2013-04-02 12:57:15 -04:00
migrations [schema] Remove User model. 2013-04-02 13:24:33 -04:00
static hashchange: Don't change the hash when called from hashchange code. 2013-04-03 14:49:32 -04:00
tests generate-fixtures: Run after schema changes even without --force. 2013-04-02 16:27:13 -04:00
__init__.py Initial Django commit: basic account, zephyr stream, narrowing, etc. 2012-08-28 12:44:51 -04:00
context_processors.py [manual] Get rid of the static-access-control mechanism 2013-01-31 15:34:12 -05:00
decorator.py [manual] Remove now-unused User model. 2013-04-02 12:57:10 -04:00
filters.py Filter out all cookies and the csrfmiddlewaretoken. 2013-02-05 16:12:48 -05:00
forms.py [manual] Authenticate using a user_profile as request.user. 2013-04-02 12:07:08 -04:00
handlers.py [manual] Authenticate using a user_profile as request.user. 2013-04-02 12:07:08 -04:00
middleware.py Make request._client a public member, dropping the '_'. 2013-03-28 07:53:36 -07:00
models.py [manual] Remove now-unused User model. 2013-04-02 12:57:10 -04:00
openid.py [manual] Implement backend support for authenticating a user via Google. 2013-02-27 10:16:54 -05:00
retention_policy.py Use get_user_profile_by_email more consistently. 2013-03-29 16:18:38 -04:00
tests.py Use form POST data for beanstalk and add shim for incorrectly-encoded emails 2013-04-03 10:21:06 -04:00
tornado_callbacks.py Send an event when a user joins or leaves the realm 2013-04-01 13:07:48 -04:00
tornadoviews.py Use helper functions instead of importing event_queue.client and event_queue.user_clients directly 2013-03-28 16:57:48 -04:00
views.py Use form POST data for beanstalk and add shim for incorrectly-encoded emails 2013-04-03 10:21:06 -04:00