diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-30 14:49:30 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-30 14:49:30 +0100 |
commit | 03da10725c584e2b3273f8cf66a0b2a51aadd275 (patch) | |
tree | fa64f100e8e518a2e28a8c35875b92a1047beb84 /program | |
parent | bc35e865ae700b21ce6085aa33ba8354a2b09ac9 (diff) |
Bring back fix for #1489396, unintentionally removed in another pull request
Diffstat (limited to 'program')
-rw-r--r-- | program/js/list.js | 20 |
1 files 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); } }, |