mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
ui: Replace set_up_scrollbar with data-simplebar attribute.
With perfectScrollbar, we needed to call a function from JavaScript to enable a scrollbar on a new element, but simplebar has a much simpler default API one can do by using data-simplebar attributes in the HTML. So we can delete all the scrollbar creation/deletion code. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
119948022f
commit
01613e71fb
@@ -638,10 +638,6 @@ exports.launch = function (section) {
|
||||
on_close: exports.close,
|
||||
});
|
||||
exports.change_state(section);
|
||||
|
||||
ui.set_up_scrollbar($("#subscription_overlay .streams-list"));
|
||||
ui.set_up_scrollbar($("#subscription_overlay .settings"));
|
||||
|
||||
});
|
||||
if (!exports.get_active_data().id) {
|
||||
$('#search_stream_name').focus();
|
||||
|
||||
Reference in New Issue
Block a user