stream_list: Remove a reference to data-name in sidebar.

This commit is contained in:
Tim Abbott
2017-08-16 16:32:39 -07:00
parent 4acd7595cd
commit 047237e45b

View File

@@ -461,9 +461,10 @@ exports.initialize = function () {
if (overlays.is_active()) {
ui_util.change_tab_to('#home');
}
var stream = $(e.target).parents('li').attr('data-name');
var stream_id = $(e.target).parents('li').attr('data-stream-id');
var sub = stream_data.get_sub_by_id(stream_id);
popovers.hide_all();
narrow.by('stream', stream, {select_first_unread: true, trigger: 'sidebar'});
narrow.by('stream', sub.name, {select_first_unread: true, trigger: 'sidebar'});
e.preventDefault();
e.stopPropagation();