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:11:56 +0200
commite66a77e5601842a855963a25c3f4e229969c3392 (patch)
treec52631ea3f580cf36b0d2ce883e0011881155acc /program/js/list.js
parente7cd99ca9e81e4f516576fff5954f68ce005cf7a (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 65e09e878..7e84ef2ae 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1417,7 +1417,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;