mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Remove dead code.
This code is the start of something that would make your narrowed-on message remain in the same place post-narrow, which is possibly a good idea. (imported from commit 0a557d6492de470928245b33f95ae8c0102db0a6)
This commit is contained in:
parent
0fcec1aad9
commit
fe3fcd334e
@ -10,10 +10,6 @@ function do_narrow(description, filter_function) {
|
||||
// Your pointer isn't changed when narrowed.
|
||||
persistent_zephyr_id = selected_zephyr_id;
|
||||
|
||||
// We want the zephyr on which the narrow happened to stay in the same place if possible.
|
||||
var old_top = $("#main_div").offset().top - selected_zephyr.offset().top;
|
||||
var parent;
|
||||
|
||||
// Empty the filtered table right before we fill it again
|
||||
clear_table('zfilt');
|
||||
add_to_table(zephyr_array, 'zfilt', filter_function, 'bottom');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user