diff --git a/program/js/list.js b/program/js/list.js index 7facad990..b07fc5efc 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -1056,10 +1056,7 @@ select: function(id) */ select_next: function() { - var next_row = this.get_next_row(), - prev_row = this.get_prev_row(), - new_row = (next_row) ? next_row : prev_row; - + var new_row = this.get_next_row() || this.get_prev_row(); if (new_row) this.select_row(new_row.uid, false, false); },