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
iv
gitlab-ce
Commits
1c8fff96
Commit
1c8fff96
authored
Mar 11, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds milestone API JS call
parent
16ba5eb4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
app/assets/javascripts/api.js.coffee
app/assets/javascripts/api.js.coffee
+18
-0
No files found.
app/assets/javascripts/api.js.coffee
View file @
1c8fff96
...
...
@@ -8,6 +8,24 @@
issues_paths
:
update
:
"/api/:version/projects/:id/issues/:issue_id"
merge_request_path
:
"/api/:version/issues/:id.json"
milestones_paths
:
index
:
"/api/:version/projects/:id/milestones"
milestones
:
index
:
(
project_id
,
callback
)
->
data
=
{}
url
=
Api
.
buildUrl
(
Api
.
milestones_paths
.
index
)
url
=
url
.
replace
(
":id"
,
project_id
)
data
.
private_token
=
gon
.
api_token
$
.
ajax
(
url
:
url
type
:
"GET"
data
:
data
dataType
:
"json"
).
done
(
milestones
)
->
if
callback
?
callback
(
milestones
)
issues
:
update
:
(
project_id
,
issue_id
,
data
,
callback
)
->
...
...
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