Skip to content

Commit

Permalink
Save content language even if it is not changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoks committed Nov 1, 2019
1 parent 5af0c9a commit 91083c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/h5peditor-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ ns.Form.prototype.remove = function () {
ns.Form.prototype.processSemantics = function (semantics, defaultParams, metadata) {
this.metadata = (metadata ? metadata : defaultParams.metadata || {});

// Set language initially used
if (!this.metadata.defaultLanguage) {
this.metadata.defaultLanguage = ns.defaultLanguage;
}

if (ns.enableMetadata(this.currentLibrary)) {
this.metadataForm = new ns.MetadataForm(this, this.metadata, this.$form.children('.tree'), true);
}
Expand Down

0 comments on commit 91083c9

Please sign in to comment.