zulip/zephyr/static/js
Reid Barton 389a52de6e Fix test for adding to top or bottom of zhome/zfilt
It's possible for selected_message_id to not exist in zhome. For
instance, when you open the page to a narrowed URL, there is a race
between loading the narrowed messages and loading all your
messages. If the narrowed message request completes first, it will
update selected_message_id to your initial_pointer if the latter
happens to be among the narrowed messages. Even if it is not, you can
select a message by clicking on it before the zhome request finishes.

Then the old code would never add that selected_message_id to the
zhome table, so it wouldn't show up in the Home view or if you
re-narrowed.

I'm pretty sure there are still cases where the selected_message_id
might be outside the range of messages in zhome, in which case adding
to zhome might put old messages at the bottom. I observed this twice
on staging but was unable to reproduce it consistently.

(imported from commit 162feff3090f8806cc67140db0cfabb6e965aece)
2013-01-14 10:33:51 -05:00
..
common.js Module pattern for compose.js 2012-10-18 15:11:25 -04:00
compose.js Display composebox again upon server errors 2013-01-07 17:03:34 -05:00
composebox_typeahead.js Revert "Autocomplete @names in the compose box" 2013-01-11 13:49:23 -05:00
debug.js Update comment in debug.js 2012-10-29 23:21:00 -04:00
hashchange.js Revert recent set of floating_recipient_bar changes. 2013-01-11 10:58:04 -05:00
hotkey.js Revert "Autocomplete @names in the compose box" 2013-01-11 13:49:23 -05:00
invite.js Frontend for invitations. 2013-01-14 10:25:26 -05:00
narrow.js Revert recent set of floating_recipient_bar changes. 2013-01-11 10:58:04 -05:00
notifications.js Notify when we see our username or our name plus punctuation 2013-01-11 13:00:34 -05: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 rows: Consistently return an empty jQuery object in some corner cases 2012-11-28 17:15:25 -05:00
search.js Always show the floating recipient bar. 2013-01-08 16:43:50 -05:00
setup.js Frontend for invitations. 2013-01-14 10:25:26 -05:00
signup.js Document the selctors in signup.js per trac #327 2012-11-09 15:03:08 -05:00
subs.js Make stream_list only contain lowercase stream names. 2013-01-07 17:36:37 -05:00
typeahead_helper.js Revert "Autocomplete @names in the compose box" 2013-01-11 13:49:23 -05:00
ui.js Frontend for invitations. 2013-01-14 10:25:26 -05:00
util.js Reset favicon after setting window.location.hash 2012-12-17 20:55:47 -05:00
zephyr.js Fix test for adding to top or bottom of zhome/zfilt 2013-01-14 10:33:51 -05:00