Wrap option lists onto multiple lines where previous commits made them long

(imported from commit 856bd9f0082ef1a6e8d537316330c40266f2f25c)
This commit is contained in:
Kevin Mehall 2013-07-03 16:14:32 -04:00
parent 56bd11fa7f
commit 5999df005e
2 changed files with 19 additions and 5 deletions

View File

@ -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)) {

View File

@ -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();