Code simplification

pull/6039/head
Aleksander Machniak 7 years ago
parent 51c76c9bac
commit afa03008c7

@ -1056,10 +1056,7 @@ select: function(id)
*/ */
select_next: function() select_next: function()
{ {
var next_row = this.get_next_row(), var new_row = this.get_next_row() || this.get_prev_row();
prev_row = this.get_prev_row(),
new_row = (next_row) ? next_row : prev_row;
if (new_row) if (new_row)
this.select_row(new_row.uid, false, false); this.select_row(new_row.uid, false, false);
}, },

Loading…
Cancel
Save