zulip/static
Alexander Pushin 888f53de13 Fix collapsing messages in narrowed views.
First user-fasing problem is that when user click to "Collapse" button
of message from narrowed list, buttons "Uncollapse" and "[More...]" does
not work. Second, is that when user collapse/uncollapse some message
from narrowed list, the collapsing/uncollapsing of the same message in
home list does not work in appropriate way.

In "popovers.js" there is the function that is called on click to the
buttons "Collapse" or "Un-collapse". It should show and hide body of a
message. If a message list is narrowed, it should show/hide message in
home list too. So, the first problem is that "toggle_row()" in this
function call methods "collapse(row)" or "uncollapse(row)" from
"condense.js" twice (for row and home_row) using condition
"if (message.collapsed)". When it happen the first time, the variable
"message.collapsed" is changed. That is why next call of "toggle_row()"
work incorrectly.

The second problem is that the function in "condense.js" that is
called on click to the button "[More...]" contains no code for
collapsing/uncollapsing message from home list. It just calls
"collapse(row)" or "uncollapse(row)" for row from narrowed list.

Now, functions "collapse(row)" and "uncollapse(row)" get row from
current list and change both messages (from current list and home
list). On-click functions call them just once for making all of needed
message changes. So, when user collapse or uncollapse message from
home or narrowed list it works correctly.

Fixes: #516
2016-03-20 16:58:57 -07:00
..
audio Change audible notification to a "knock" sound. 2014-02-12 17:09:39 -05:00
html Update Zulip support email to zulip-devel@googlegroups.com. 2015-09-29 17:59:47 -07:00
images Add several major Hubot integrations to integration docs. 2016-03-20 11:50:21 -07:00
js Fix collapsing messages in narrowed views. 2016-03-20 16:58:57 -07:00
styles Don't hide the streams gear menu. 2016-03-12 09:28:12 -08:00
templates Fix performance issues with user presence list in large realms. 2016-02-12 20:04:43 -08:00
third Remove pre-built emoji images from version control. 2015-09-25 00:22:15 -07:00
.gitignore Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
favicon.ico Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
robots.txt Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00