Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream settings: Remove obsolete scrolling code.
Steve Howell62e272ce276d
diff --git a/frontend_tests/node_tests/subs.js b/frontend_tests/node_tests/subs.jsindex 79aeb06af33..98290f95231 100644--- a/frontend_tests/node_tests/subs.js+++ b/frontend_tests/node_tests/subs.js@@ -28,18 +28,6 @@ set_global("hash_util", {});run_test("filter_table", () => {- const stream_list = $(".streams-list");-- let scrolltop_called = false;- stream_list.scrollTop = function (set) {- scrolltop_called = true;- if (!set) {- return 10;- }- assert.equal(set, 10);- return this;- };-// set-up sub rows stubsconst sub_row_data = [{@@ -167,7 +155,6 @@ run_test("filter_table", () => {// assert these once and call it doneassert(ui_called);- assert(scrolltop_called);assert(tooltip_called);assert.deepEqual(sub_table_append, [".stream-row-poland",diff --git a/static/js/subs.js b/static/js/subs.jsindex 9b2ba327095..0c76b535249 100644--- a/static/js/subs.js+++ b/static/js/subs.js@@ -433,7 +433,6 @@ exports.filter_table = function (left_panel_params) {}const widgets = new Map();- const streams_list_scrolltop = ui.get_scroll_element($(".streams-list")).scrollTop();const stream_ids = [];@@ -478,9 +477,6 @@ exports.filter_table = function (left_panel_params) {}exports.maybe_reset_right_panel();-- // this puts the scrollTop back to what it was before the list was updated again.- ui.get_scroll_element($(".streams-list")).scrollTop(streams_list_scrolltop);};let sort_order = "by-stream-name";