summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-17 09:11:56 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-17 09:14:20 +0200
commite6f21118b8d63de797c2af889c710d33ce908c8c (patch)
treeb4cd287ed9f41a7aa4429be59dd5b02748cd7b9f /program/js/list.js
parent2d284df861ed0d0da5e9c36c437c32ba8fbf6e68 (diff)
Fix contacts list update after adding/deleting/moving a contact (#1490028, #1490033)
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index b54b4daf3..fd14c630c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1282,7 +1282,8 @@ use_arrow_key: function(keyCode, mod_key)
*/
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;