From 03da10725c584e2b3273f8cf66a0b2a51aadd275 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 30 Oct 2013 14:49:30 +0100 Subject: Bring back fix for #1489396, unintentionally removed in another pull request --- program/js/list.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/program/js/list.js b/program/js/list.js index 15dd019e0..439e941fa 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -858,14 +858,8 @@ select_first: function(mod_key) { var row = this.get_first_row(); if (row) { - if (mod_key) { - this.shift_select(row, mod_key); - this.triggerEvent('select'); - this.scrollto(row); - } - else { - this.select(row); - } + this.select_row(row, mod_key, false); + this.scrollto(row); } }, @@ -877,14 +871,8 @@ select_last: function(mod_key) { var row = this.get_last_row(); if (row) { - if (mod_key) { - this.shift_select(row, mod_key); - this.triggerEvent('select'); - this.scrollto(row); - } - else { - this.select(row); - } + this.select_row(row, mod_key, false); + this.scrollto(row); } }, -- cgit v1.2.3