From afa03008c7da4162e1705f0e27179802001f589d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 7 Sep 2017 19:26:55 +0200 Subject: [PATCH] Code simplification --- program/js/list.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); },