mirror of https://github.com/zulip/zulip.git
floating_recipient_bar: Fix incorrect use of jQuery .next().
The semantic of jQuery's .next(selector) return nothing if the selector doesn't match the next child.
This commit is contained in:
parent
5bd2c70c3c
commit
40916803e7
|
@ -141,7 +141,11 @@ exports.relevant_recipient_bars = function () {
|
|||
header_height += 10;
|
||||
|
||||
function next(elem) {
|
||||
return elem.next('.recipient_row');
|
||||
elem = elem.next();
|
||||
while (elem.length !== 0 && !elem.hasClass("recipient_row")) {
|
||||
elem = elem.next();
|
||||
}
|
||||
return elem;
|
||||
}
|
||||
|
||||
// Now start the forward traversal of recipient bars.
|
||||
|
|
Loading…
Reference in New Issue