Skip to content

Commit 6bb4931

Browse files
committed
replace XML rather than de- and re-serializing
1 parent a0beafb commit 6bb4931

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

indigo_app/static/javascript/indigo/views/document_defined_terms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
});
9797

9898
// set the content once for one mutation record
99-
this.model.set('content', Indigo.toXml(xml));
99+
this.model.xmlDocument.documentElement.replace(xml);
100100
},
101101
});
102102
})(window);

indigo_app/static/javascript/indigo/views/document_italics_terms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
});
8383

8484
// set the content once for one mutation record
85-
this.model.set('content', Indigo.toXml(xml));
85+
this.model.xmlDocument.documentElement.replace(xml);
8686
}
8787
});
8888
})(window);

indigo_app/static/javascript/indigo/views/document_references.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
});
9494

9595
// set the content once for one mutation record
96-
this.model.set('content', Indigo.toXml(xml));
96+
this.model.xmlDocument.documentElement.replace(xml);
9797
},
9898
});
9999
})(window);

0 commit comments

Comments
 (0)