diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-08-17 09:11:56 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-08-17 09:11:56 +0200 |
commit | e66a77e5601842a855963a25c3f4e229969c3392 (patch) | |
tree | c52631ea3f580cf36b0d2ce883e0011881155acc /program/js/list.js | |
parent | e7cd99ca9e81e4f516576fff5954f68ce005cf7a (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.js | 3 |
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; |