fixes typo

This commit is contained in:
rgarcia
2015-12-16 19:29:03 +01:00
parent 61357afba7
commit 04ab0af8a3
3 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
App.Annotatable =
initialize: ->
$("[data-annotatable-type]").each ->
$this = $(this)
ann_type = $this.data("annotatable-type")
ann_id = $this.data("annotatable-id")
app = new annotator.App()
.include(annotator.ui.main, { element: this })
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
.include ->
beforeAnnotationCreated: (ann) ->
ann[ann_type + "_id"] = ann_id
app.start().then ->
app.ident.identity = $('html').data('current-user-id')
options = {}
options[ann_type + "_id"] = ann_id
app.annotations.load(options)