Skip to content

Commit

Permalink
Propagate documentId into SaveHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Jul 6, 2016
1 parent 81b0b68 commit 1867df3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/jats-editor/JATSEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ JATSEditor.Prototype = function() {
// Display reader for mobile and writer on desktop
el.append(
$$(Publisher, {
documentId: this.props.documentId,
documentSession: this.state.documentSession,
configurator: configurator
}).ref('publisher')
Expand Down
1 change: 1 addition & 0 deletions examples/science-writer/ScienceWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ ScienceWriter.Prototype = function() {
// Display reader for mobile and writer on desktop
el.append(
$$(Author, {
documentId: this.props.documentId,
documentSession: this.state.documentSession,
configurator: configurator
}).ref('publisher')
Expand Down
1 change: 1 addition & 0 deletions packages/common/AbstractWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ AbstractWriter.Prototype = function() {

this._getSaveHandler = function() {
return new SaveHandler({
documentId: this.props.documentId,
xmlStore: this.context.xmlStore,
exporter: this.exporter
});
Expand Down
2 changes: 1 addition & 1 deletion packages/common/SaveHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SaveHandler.Prototype = function() {
var exporter = this.context.exporter;
var xml = exporter.exportDocument(doc);
// console.log('### SAVING XML', xml);
this.context.xmlStore.writeXML('elife-00007', xml, cb);
this.context.xmlStore.writeXML(this.context.documentId, xml, cb);
};
};

Expand Down

0 comments on commit 1867df3

Please sign in to comment.