BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
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