hides the admin checkboxes in annotator
This commit is contained in:
@@ -6,11 +6,14 @@ App.Annotatable =
|
|||||||
ann_id = $this.data("annotatable-id")
|
ann_id = $this.data("annotatable-id")
|
||||||
|
|
||||||
app = new annotator.App()
|
app = new annotator.App()
|
||||||
.include(annotator.ui.main, { element: this })
|
|
||||||
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
|
|
||||||
.include ->
|
.include ->
|
||||||
beforeAnnotationCreated: (ann) ->
|
beforeAnnotationCreated: (ann) ->
|
||||||
ann[ann_type + "_id"] = ann_id
|
ann[ann_type + "_id"] = ann_id
|
||||||
|
ann.permissions = ann.permissions || {}
|
||||||
|
ann.permissions.admin = []
|
||||||
|
.include(annotator.ui.main, { element: this })
|
||||||
|
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
|
||||||
|
|
||||||
|
|
||||||
app.start().then ->
|
app.start().then ->
|
||||||
app.ident.identity = $('html').data('current-user-id')
|
app.ident.identity = $('html').data('current-user-id')
|
||||||
|
|||||||
Reference in New Issue
Block a user