From e66a77e5601842a855963a25c3f4e229969c3392 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 17 Aug 2014 03:11:56 -0400 Subject: [PATCH] Fix contacts list update after adding/deleting/moving a contact (#1490028, #1490033) --- program/js/list.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/js/list.js b/program/js/list.js index 65e09e8..7e84ef2 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1417,7 +1417,8 @@ */ scrollto: function(id) { - var row = this.rows[id].obj; + var row = this.rows[id] ? this.rows[id].obj : null; + if (row && this.frame) { var scroll_to = Number(row.offsetTop), head_offset = 0; -- Gitblit v1.9.1