zulip/zephyr/static/js
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
..
activity.js Move "page parameters" (email, enter_sends, etc) into a single object 2013-03-26 13:50:03 -04:00
blueslip.js blueslip: Indicate whether users saw an error in the error emails 2013-03-27 21:53:58 -04:00
colorspace.js Use white text for recipient labels on streams set to dark colors 2013-02-19 15:33:35 -05:00
common.js Module pattern for compose.js 2012-10-18 15:11:25 -04:00
compose.js stream_exists_backend now returns a 404 if the stream is not found. 2013-03-28 07:53:37 -07:00
composebox_typeahead.js Move "page parameters" (email, enter_sends, etc) into a single object 2013-03-26 13:50:03 -04:00
debug.js Remove verbose_stacktrace function. Use console.trace instead 2013-03-11 13:22:12 -04:00
hashchange.js hashchange: Don't change the hash when called from hashchange code. 2013-04-03 14:49:32 -04:00
hotkey.js Fix pointer jumps on unnarrowing after certain scroll events. 2013-04-03 13:38:41 -04:00
invite.js [manual] Fetch Handlebars templates using Ajax 2013-04-02 14:43:58 -04:00
message_list.js [manual] Fetch Handlebars templates using Ajax 2013-04-02 14:43:58 -04:00
narrow.js Tailor empty narrow messages to what you were narrowing for. 2013-04-01 14:26:50 -04:00
notifications.js Move "page parameters" (email, enter_sends, etc) into a single object 2013-03-26 13:50:03 -04:00
notifications_bar.js Unify calculation of unread-count for notifications and use it in the title bar 2013-03-20 10:09:40 -04:00
reload.js Make it possible to paste a #narrow URL into a new tab 2012-12-20 14:45:11 -05:00
rows.js Remove global selected_message_id and persistent_message_id variables 2013-02-21 13:29:17 -05:00
search.js Move "page parameters" (email, enter_sends, etc) into a single object 2013-03-26 13:50:03 -04:00
setup.js [manual] Fetch Handlebars templates using Ajax 2013-04-02 14:43:58 -04:00
signup.js Document the selctors in signup.js per trac #327 2012-11-09 15:03:08 -05:00
subs.js [manual] Fetch Handlebars templates using Ajax 2013-04-02 14:43:58 -04:00
templates.js [manual] Fetch Handlebars templates using Ajax 2013-04-02 14:43:58 -04:00
timerender.js Do just in time calculation of full date and time for messages 2013-03-05 12:48:33 -05:00
tutorial.js tutorial: streamline some sections, and bold user actions. 2013-03-26 14:06:25 -04:00
typeahead_helper.js Handle realm_user events in web client 2013-04-01 13:07:48 -04:00
ui.js Fix clicking on streams in left sidebar from subscriptions page. 2013-04-03 14:15:07 -04:00
util.js Tailor empty narrow messages to what you were narrowing for. 2013-04-01 14:26:50 -04:00
zephyr.js Fix pointer jumps on unnarrowing after certain scroll events. 2013-04-03 13:38:41 -04:00