mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Get reference keys when project loads.
This commit is contained in:
parent
a48abcab0b
commit
e94863d026
2 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,7 @@ define [
|
|||
console.log result
|
||||
callback null, result
|
||||
|
||||
@editor.completers = [ReferencesCompleter, @suggestionManager, SnippetCompleter]
|
||||
@editor.completers = [@suggestionManager, SnippetCompleter, ReferencesCompleter]
|
||||
|
||||
disable: () ->
|
||||
@editor.setOptions({
|
||||
|
|
|
@ -12,6 +12,9 @@ define [
|
|||
@$scope.$emit 'references:changed', entity
|
||||
@indexReferences doc.doc_id
|
||||
|
||||
@$scope.$on 'project:joined', (e) =>
|
||||
@getReferenceKeys()
|
||||
|
||||
indexReferences: (doc_id) ->
|
||||
$.post(
|
||||
"/project/#{@$scope.project_id}/references",
|
||||
|
|
Loading…
Reference in a new issue