summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-12-17 21:28:37 +0000
committerthomascube <thomas@roundcube.net>2006-12-17 21:28:37 +0000
commita7d5c6480cdef191b04e71005ffea0e35b84ac24 (patch)
tree2417f87ab39eb74765da109af8fb62bb730b9090 /program/js/list.js
parent5b0687dfcabb7258902f070057fc8a41ba27a776 (diff)
Added patch for resizeable preview pane
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/list.js b/program/js/list.js
index eac19bb60..0797295ee 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -272,7 +272,7 @@ get_next_row: function()
return false;
var last_selected_row = this.rows[this.last_selected];
- var new_row = last_selected_row && last_selected_row.obj.nextSibling;
+ var new_row = last_selected_row ? last_selected_row.obj.nextSibling : null;
while (new_row && (new_row.nodeType != 1 || new_row.style.display == 'none'))
new_row = new_row.nextSibling;
@@ -285,7 +285,7 @@ get_prev_row: function()
return false;
var last_selected_row = this.rows[this.last_selected];
- var new_row = last_selected_row && last_selected_row.obj.previousSibling;
+ var new_row = last_selected_row ? last_selected_row.obj.previousSibling : null;
while (new_row && (new_row.nodeType != 1 || new_row.style.display == 'none'))
new_row = new_row.previousSibling;