Skip to content

Commit

Permalink
Do not show structure annotation as addable types (that's what the st…
Browse files Browse the repository at this point in the history
…ructure editor will be for)
  • Loading branch information
proycon committed Oct 26, 2016
1 parent 23ce787 commit 57a8ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flat/style/flat.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function setaddablefields() {
editoraddablefields = [];
Object.keys(declarations).forEach(function(annotationtype){
Object.keys(declarations[annotationtype]).forEach(function(set){
if ((annotationtype != "correction") && (viewannotations[annotationtype + "/" + set]) && (folia_accepts(editedelementtype,annotationtype))) {
if ((annotationtype != "correction") && (viewannotations[annotationtype + "/" + set]) && (!folia_isstructure(annotationtype)) && (folia_accepts(editedelementtype,annotationtype))) {
label = folia_label(annotationtype, set);
setname = shorten(set);
//check if it already exists
Expand Down

0 comments on commit 57a8ef1

Please sign in to comment.