diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-01-18 23:56:10 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-01-31 01:18:15 +0300 |
commit | 58a005cf2c225a7d1425ccdc99377b8bf441056e (patch) | |
tree | 16f539ae1dc460368b9a480c32980e86c7f0a516 /app/assets/javascripts/task_list.js | |
parent | 68c0276421bce7ace11128f66547cca7f61e74b0 (diff) |
Pass down the new state of the checkbox
and whitelist the `update_task` parameter
Diffstat (limited to 'app/assets/javascripts/task_list.js')
-rw-r--r-- | app/assets/javascripts/task_list.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/task_list.js b/app/assets/javascripts/task_list.js index 2c3bd61463e..dbcac01e761 100644 --- a/app/assets/javascripts/task_list.js +++ b/app/assets/javascripts/task_list.js @@ -49,7 +49,7 @@ export default class TaskList { update(e) { const $target = $(e.target); - const { lineNumber, lineSource } = e.detail; + const { lineNumber, lineSource, checked } = e.detail; const patchData = {}; patchData[this.dataType] = { @@ -58,6 +58,7 @@ export default class TaskList { update_task: { line_number: lineNumber, line_source: lineSource, + checked: checked, }, }; |