Skip to content

Commit

Permalink
renderparentspanfield now renders existing values correctly (#3 subis…
Browse files Browse the repository at this point in the history
…sue 3)
  • Loading branch information
proycon committed Nov 30, 2016
1 parent 0f6c9e1 commit 3cf92e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flat/style/flat.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,11 @@ function renderparentspanfield(index, annotation, nestableparents) {
for (var i = 0; i < nestableparents.length; i++) {
if (spanannotation.type == nestableparents[i]) {
var label = folia_label(spanannotation.type, spanannotation.set);
s += "<option value=\""+spanannotation.id+"\">" + label + " " + spanannotation.class + ": " + getspantext(spanannotation)+ "</option>";
s += "<option value=\""+spanannotation.id+"\"";
if ((annotation.parentspan) && (annotation.parentspan === spanannotation.id)) {
s += " selected=\"selected\"";
}
s += ">" + label + " " + spanannotation.class + ": " + getspantext(spanannotation)+ "</option>";
}
}
});
Expand Down

0 comments on commit 3cf92e2

Please sign in to comment.