From e6f21118b8d63de797c2af889c710d33ce908c8c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 17 Aug 2014 03:14:20 -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 b54b4da..fd14c63 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1282,7 +1282,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