Carga anotaciones de la propuesta
This commit is contained in:
@@ -8,8 +8,12 @@ proposalId = ->
|
||||
|
||||
App.annotations =
|
||||
initialize: ->
|
||||
new annotator.App()
|
||||
.include(annotator.ui.main, {element: $(proposalSelector)[0]})
|
||||
.include(annotator.storage.http, {id: 1, prefix: ""})
|
||||
app = new annotator.App()
|
||||
.include(annotator.ui.main, { element: $(proposalSelector)[0] })
|
||||
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
|
||||
.include(proposalId)
|
||||
.start();
|
||||
|
||||
app.start()
|
||||
.then( ->
|
||||
app.annotations.load( { proposal_id: $(proposalSelector).data("id") } )
|
||||
)
|
||||
Reference in New Issue
Block a user