diff --git a/zephyr/static/js/message_list.js b/zephyr/static/js/message_list.js index 46287ec099..cb59807893 100644 --- a/zephyr/static/js/message_list.js +++ b/zephyr/static/js/message_list.js @@ -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)) { diff --git a/zephyr/static/js/narrow.js b/zephyr/static/js/narrow.js index 4fe3442ec6..9b9a148233 100644 --- a/zephyr/static/js/narrow.js +++ b/zephyr/static/js/narrow.js @@ -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();