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-18 23:56:10 +0300
committerFatih Acet <acetfatih@gmail.com>2019-01-31 01:18:15 +0300
commit58a005cf2c225a7d1425ccdc99377b8bf441056e (patch)
tree16f539ae1dc460368b9a480c32980e86c7f0a516 /app/assets/javascripts/task_list.js
parent68c0276421bce7ace11128f66547cca7f61e74b0 (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.js3
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,
},
};