Skip to content

Commit

Permalink
Fix for corrections after removing structural elements from view menus
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 25, 2016
1 parent 65e21b2 commit e2f0903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flat/style/flat.viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
} else {
e = annotations[new_id];
}
if (viewannotations[e.type+"/"+e.set]) {
if ((correction.structural) || (viewannotations[e.type+"/"+e.set])) {
s = s + "<tr><th>New";
if (addlabels) {
s = s + " " + folia_label(e.type, e.set);
Expand All @@ -323,7 +323,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
} else {
e = annotations[current_id];
}
if (viewannotations[e.type+"/"+e.set]) {
if ((correction.structural) || (viewannotations[e.type+"/"+e.set])) {
s = s + "<tr><th>Current";
if (addlabels) {
s = s + " " + folia_label(e.type, e.set);
Expand All @@ -348,7 +348,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
} else {
original = annotations[original_id];
}
if (viewannotations[original.type+"/"+original.set]) {
if ((correction.structural) || (viewannotations[original.type+"/"+original.set])) {
s = s + "<tr><th>Original";
if (addlabels) {
s = s + " " + folia_label(original.type, original.set);
Expand Down

0 comments on commit e2f0903

Please sign in to comment.