Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e2e2f0d3
Commit
e2e2f0d3
authored
5 years ago
by
Brett Walker
Committed by
Fatih Acet
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass down the index of the checkbox checked
parent
58a005cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/task_list.js
app/assets/javascripts/task_list.js
+3
-2
No files found.
app/assets/javascripts/task_list.js
View file @
e2e2f0d3
...
@@ -49,16 +49,17 @@ export default class TaskList {
...
@@ -49,16 +49,17 @@ export default class TaskList {
update
(
e
)
{
update
(
e
)
{
const
$target
=
$
(
e
.
target
);
const
$target
=
$
(
e
.
target
);
const
{
lineNumber
,
lineSource
,
checked
}
=
e
.
detail
;
const
{
index
,
checked
,
lineNumber
,
lineSource
}
=
e
.
detail
;
const
patchData
=
{};
const
patchData
=
{};
patchData
[
this
.
dataType
]
=
{
patchData
[
this
.
dataType
]
=
{
[
this
.
fieldName
]:
$target
.
val
(),
[
this
.
fieldName
]:
$target
.
val
(),
lock_version
:
this
.
lockVersion
,
lock_version
:
this
.
lockVersion
,
update_task
:
{
update_task
:
{
index
:
index
,
checked
:
checked
,
line_number
:
lineNumber
,
line_number
:
lineNumber
,
line_source
:
lineSource
,
line_source
:
lineSource
,
checked
:
checked
,
},
},
};
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment