Add perfectScrollbar to default streams table.

This adds perfectScrollbar to the default streams table
because it currently is inside another perfectScrollbar which
actually makes it impossible to scroll the table normally without
enabling the perfectScrollbar library on this.

Fixes: #6391.
This commit is contained in:
Brock Whittaker
2017-09-15 14:01:36 -07:00
committed by Tim Abbott
parent 5db810b5d7
commit d1ef863f96
3 changed files with 14 additions and 0 deletions

View File

@@ -50,9 +50,14 @@ exports.build_default_stream_table = function (streams_data) {
callback: function (item, value) {
return item.name.toLowerCase().indexOf(value) >= 0;
},
onupdate: function () {
ui.update_scrollbar(table);
},
},
}).init();
ui.set_up_scrollbar(table.closest(".progressive-table-wrapper"));
loading.destroy_indicator($('#admin_page_default_streams_loading_indicator'));
self.remove = function (stream_id) {