summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-30 14:49:30 +0100
committerAleksander Machniak <alec@alec.pl>2013-10-30 14:49:30 +0100
commit03da10725c584e2b3273f8cf66a0b2a51aadd275 (patch)
treefa64f100e8e518a2e28a8c35875b92a1047beb84
parentbc35e865ae700b21ce6085aa33ba8354a2b09ac9 (diff)
Bring back fix for #1489396, unintentionally removed in another pull request
-rw-r--r--program/js/list.js20
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);
}
},