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
Jérome Perrin
gitlab-ce
Commits
5ef8bd33
Commit
5ef8bd33
authored
Apr 29, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove taskable.js
parent
bc14d223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
app/assets/javascripts/behaviors/taskable.js.coffee
app/assets/javascripts/behaviors/taskable.js.coffee
+0
-21
No files found.
app/assets/javascripts/behaviors/taskable.js.coffee
deleted
100644 → 0
View file @
bc14d223
window
.
updateTaskState
=
(
taskableType
)
->
objType
=
taskableType
.
data
isChecked
=
$
(
this
).
prop
(
"checked"
)
if
$
(
this
).
is
(
":checked"
)
stateEvent
=
"task_check"
else
stateEvent
=
"task_uncheck"
taskableUrl
=
$
(
"form.edit-"
+
objType
).
first
().
attr
(
"action"
)
taskableNum
=
taskableUrl
.
match
(
/\d+$/
)
taskNum
=
0
$
(
"li.task-list-item input:checkbox"
).
each
(
(
index
,
e
)
=>
if
e
==
this
taskNum
=
index
+
1
)
$
.
ajax
type
:
"PATCH"
url
:
taskableUrl
data
:
objType
+
"[state_event]="
+
stateEvent
+
"&"
+
objType
+
"[task_num]="
+
taskNum
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