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
9da87709
Commit
9da87709
authored
Mar 15, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove api calls from api.js.coffee.
Using respond to instead
parent
d17b5499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
app/assets/javascripts/api.js.coffee
app/assets/javascripts/api.js.coffee
+0
-39
No files found.
app/assets/javascripts/api.js.coffee
View file @
9da87709
...
...
@@ -5,45 +5,6 @@
group_projects_path
:
"/api/:version/groups/:id/projects.json"
projects_path
:
"/api/:version/projects.json"
labels_path
:
"/api/:version/projects/:id/labels"
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
)
->
url
=
Api
.
buildUrl
(
Api
.
issues_paths
.
update
)
url
=
url
.
replace
(
":id"
,
project_id
)
.
replace
(
":issue_id"
,
issue_id
)
if
not
data
?
data
=
{}
data
.
private_token
=
gon
.
api_token
$
.
ajax
(
url
:
url
type
:
"PUT"
data
:
data
dataType
:
"json"
).
done
(
issue
)
->
if
callback
?
callback
(
issue
)
group
:
(
group_id
,
callback
)
->
url
=
Api
.
buildUrl
(
Api
.
group_path
)
...
...
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