Uses the current user in annotator.js

This commit is contained in:
kikito
2015-12-16 18:46:56 +01:00
parent 60099e982b
commit 2c9cbb9ce6

View File

@@ -13,6 +13,8 @@ App.Annotable =
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)