mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Use angular $http service for references
This commit is contained in:
@@ -44,22 +44,18 @@ define [
|
||||
docIds: docIds
|
||||
shouldBroadcast: shouldBroadcast
|
||||
_csrf: window.csrfToken
|
||||
$.post(
|
||||
@ide.$http.post(
|
||||
"/project/#{@$scope.project_id}/references/index",
|
||||
opts,
|
||||
(data) =>
|
||||
# console.log ">> got keys ", data
|
||||
@_storeReferencesKeys(data.keys)
|
||||
)
|
||||
opts
|
||||
).then (response) =>
|
||||
@_storeReferencesKeys(response.data.keys)
|
||||
|
||||
indexAllReferences: (shouldBroadcast) ->
|
||||
opts =
|
||||
shouldBroadcast: shouldBroadcast
|
||||
_csrf: window.csrfToken
|
||||
$.post(
|
||||
@ide.$http.post(
|
||||
"/project/#{@$scope.project_id}/references/indexAll",
|
||||
opts,
|
||||
(data) =>
|
||||
# console.log ">> got keys ", data
|
||||
@_storeReferencesKeys(data.keys)
|
||||
)
|
||||
opts
|
||||
).then (response) =>
|
||||
@_storeReferencesKeys(response.data.keys)
|
||||
|
||||
Reference in New Issue
Block a user