Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-01-22 00:16:37 +0300
committerFatih Acet <acetfatih@gmail.com>2019-01-31 01:18:15 +0300
commite2e2f0d3788fbc1bad951eb7f2186d56f9b49c66 (patch)
tree87a067e45f93b70d491fb7e293e8588aac6c4824 /app/assets/javascripts/task_list.js
parent58a005cf2c225a7d1425ccdc99377b8bf441056e (diff)
Pass down the index of the checkbox checked
Diffstat (limited to 'app/assets/javascripts/task_list.js')
-rw-r--r--app/assets/javascripts/task_list.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/task_list.js b/app/assets/javascripts/task_list.js
index dbcac01e761..08100d1d542 100644
--- a/app/assets/javascripts/task_list.js
+++ b/app/assets/javascripts/task_list.js
@@ -49,16 +49,17 @@ export default class TaskList {
update(e) {
const $target = $(e.target);
- const { lineNumber, lineSource, checked } = e.detail;
+ const { index, checked, lineNumber, lineSource } = e.detail;
const patchData = {};
patchData[this.dataType] = {
[this.fieldName]: $target.val(),
lock_version: this.lockVersion,
update_task: {
+ index: index,
+ checked: checked,
line_number: lineNumber,
line_source: lineSource,
- checked: checked,
},
};