Get reference keys when project loads.

This commit is contained in:
Shane Kilkelly 2015-12-29 13:30:57 +00:00
parent a48abcab0b
commit e94863d026
2 changed files with 4 additions and 1 deletions

View file

@ -55,7 +55,7 @@ define [
console.log result
callback null, result
@editor.completers = [ReferencesCompleter, @suggestionManager, SnippetCompleter]
@editor.completers = [@suggestionManager, SnippetCompleter, ReferencesCompleter]
disable: () ->
@editor.setOptions({

View file

@ -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",