mirror of https://github.com/zulip/zulip.git
Wrap option lists onto multiple lines where previous commits made them long
(imported from commit 856bd9f0082ef1a6e8d537316330c40266f2f25c)
This commit is contained in:
parent
56bd11fa7f
commit
5999df005e
|
@ -104,9 +104,15 @@ MessageList.prototype = {
|
|||
},
|
||||
|
||||
select_id: function MessageList_select_id(id, opts) {
|
||||
opts = $.extend({then_scroll: false, use_closest: false, mark_read: true}, opts, {id: id,
|
||||
msg_list: this,
|
||||
previously_selected: this._selected_id});
|
||||
opts = $.extend({
|
||||
then_scroll: false,
|
||||
use_closest: false,
|
||||
mark_read: true
|
||||
}, opts, {
|
||||
id: id,
|
||||
msg_list: this,
|
||||
previously_selected: this._selected_id
|
||||
});
|
||||
|
||||
id = parseInt(id, 10);
|
||||
if (isNaN(id)) {
|
||||
|
|
|
@ -410,7 +410,11 @@ exports.activate = function (operators, opts) {
|
|||
}
|
||||
});
|
||||
}
|
||||
narrowed_msg_list.select_id(then_select_id, {then_scroll: true, use_closest: true, mark_read: false});
|
||||
narrowed_msg_list.select_id(then_select_id, {
|
||||
then_scroll: true,
|
||||
use_closest: true,
|
||||
mark_read: false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -532,7 +536,11 @@ exports.deactivate = function () {
|
|||
current_msg_list = home_msg_list;
|
||||
// We fall back to the closest selected id, if the user has removed a stream from the home
|
||||
// view since leaving it the old selected id might no longer be there
|
||||
home_msg_list.select_id(home_msg_list.selected_id(), {then_scroll: true, use_closest: true, mark_read: false});
|
||||
home_msg_list.select_id(home_msg_list.selected_id(), {
|
||||
then_scroll: true,
|
||||
use_closest: true,
|
||||
mark_read: false
|
||||
});
|
||||
|
||||
hashchange.save_narrow();
|
||||
|
||||
|
|
Loading…
Reference in New Issue