From 5aef8b8fade8f810b17452900c376e9bacdc3776 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 25 Feb 2014 16:45:11 -0500 Subject: [PATCH] Maintain scroll position when removing selected message (imported from commit 1021eac527e677fbcac46d0a7d44dd3244bb903e) --- static/js/message_list.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/message_list.js b/static/js/message_list.js index 25b25ea02f..7ba5768bcf 100644 --- a/static/js/message_list.js +++ b/static/js/message_list.js @@ -405,8 +405,7 @@ MessageList.prototype = { }); } - this.view.rerender_the_whole_thing(); - this.select_id(this.selected_id(), {use_closest: true, empty_ok: true}); + this.rerender(); }, show_edit_message: function MessageList_show_edit_message(row, edit_obj) {