mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
node tests: Use get_on_handler in stream_list.js.
This commit is contained in:
@@ -252,10 +252,8 @@ function initialize_stream_data() {
|
|||||||
stream_list.initialize();
|
stream_list.initialize();
|
||||||
|
|
||||||
function activate_filter(filter) {
|
function activate_filter(filter) {
|
||||||
var data = {
|
var handler = $(document).get_on_handler('narrow_activated.zulip');
|
||||||
filter: filter,
|
handler({filter: filter});
|
||||||
};
|
|
||||||
$(document).trigger($.Event('narrow_activated.zulip', data));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var filter;
|
var filter;
|
||||||
|
|||||||
Reference in New Issue
Block a user