mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
keep the references keys.
This commit is contained in:
parent
4d46804b9f
commit
bd0f1c0e29
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,10 @@ define [
|
|||
class ReferencesSearchManager
|
||||
constructor: (@ide, @$scope) ->
|
||||
|
||||
@state =
|
||||
keys: []
|
||||
@$scope.references = @state
|
||||
|
||||
@$scope.$on 'document:closed', (e, doc) =>
|
||||
if doc.doc_id
|
||||
entity = @ide.fileTreeManager.findEntityById doc.doc_id
|
||||
|
@ -35,4 +39,5 @@ define [
|
|||
(data) =>
|
||||
console.log ">> got keys"
|
||||
console.log(data)
|
||||
@state.keys = data.keys
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue