mirror of https://github.com/zulip/zulip.git
Don't update pointer when it hasn't actually changed
(imported from commit 41c8b1cd2a586bb9d82b0ff194c076e93f34d98a)
This commit is contained in:
parent
d7a5fa3d99
commit
8b691ec0b2
|
@ -210,7 +210,10 @@ function respond_to_zephyr() {
|
|||
}
|
||||
|
||||
function update_pointer(zephyr) {
|
||||
selected_zephyr_id = get_id(zephyr);
|
||||
var new_selected = get_id(zephyr);
|
||||
if (new_selected == selected_zephyr_id)
|
||||
return;
|
||||
selected_zephyr_id = new_selected;
|
||||
|
||||
$('.selected_zephyr').removeClass('selected_zephyr');
|
||||
zephyr.addClass('selected_zephyr');
|
||||
|
|
Loading…
Reference in New Issue