summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-05-20 13:02:52 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-05-20 13:02:52 (GMT)
commitf4a2765243f65d8c00fe4d2fafd8641e53b2816c (patch)
tree0002949dcd2ed72b1ce8ded1489407f313288559
parent76a43e5c38a9adc5bbc72a53c7b2d3f3846b4a2f (diff)
downloadroundcubemail-plugins-kolab-f4a2765243f65d8c00fe4d2fafd8641e53b2816c.tar.gz
Fix selecting some rows with CTRL key (id=rcmrow0 is not handled correctly by list.js code)
-rw-r--r--plugins/kolab_files/kolab_files.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index fde6188..a16f8ff 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -875,8 +875,7 @@ function kolab_files_ui()
var i = 0, list = [], table = $('#filelist');
$.each(response.result, function(key, data) {
- i++;
- var row = file_api.file_list_row(key, data, i);
+ var row = file_api.file_list_row(key, data, ++i);
rcmail.file_list.insert_row(row);
data.row = row;
data.filename = key;
@@ -961,7 +960,7 @@ function kolab_files_ui()
if (this.sort_compare(elem, result[i]) < 0)
break;
- var row = this.file_list_row(i, result[i], index++);
+ var row = this.file_list_row(i, result[i], ++index);
table.insert_row(row, elem.row);
result[i].row = row;
result[i].filename = i;
@@ -974,7 +973,7 @@ function kolab_files_ui()
// add the rest of rows
$.each(result, function(key, data) {
- var row = file_api.file_list_row(key, data, index++);
+ var row = file_api.file_list_row(key, data, ++index);
table.insert_row(row);
result[key].row = row;
result[key].filename = key;