diff --git a/app/assets/javascripts/annotable.js.coffee b/app/assets/javascripts/annotable.js.coffee index f803ab765..3bdc0d79b 100644 --- a/app/assets/javascripts/annotable.js.coffee +++ b/app/assets/javascripts/annotable.js.coffee @@ -10,7 +10,7 @@ App.Annotable = .include(annotator.ui.main, { element: this }) .include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } }) .include -> - beforeannotationCreated: (ann) -> + beforeAnnotationCreated: (ann) -> ann[ann_type + "_id"] = ann_id ann.user_id = ann_user_id