diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-01-21 15:16:37 -0600 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-01-30 23:18:15 +0100 |
commit | e2e2f0d3788fbc1bad951eb7f2186d56f9b49c66 (patch) | |
tree | 87a067e45f93b70d491fb7e293e8588aac6c4824 /app/assets/javascripts/task_list.js | |
parent | 58a005cf2c225a7d1425ccdc99377b8bf441056e (diff) | |
download | gitlab-ce-e2e2f0d3788fbc1bad951eb7f2186d56f9b49c66.tar.gz |
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.js | 5 |
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, }, }; |