[FIX] website: SEO keywords
Seen behavior: SEO keywords not saving Expecte behavior: SEO should save Reason: destroy event method from dialog.js is now hidding modal programmatically. Which at the end call twice the keywords save method. The second time there were no keywords passed to that function which is causing that behavior (saving empty array).
This commit is contained in:
@@ -455,6 +455,7 @@ var SeoConfigurator = Dialog.extend({
|
||||
data.website_meta_keywords = this.keywordList.keywords().join(', ');
|
||||
}
|
||||
this.saveMetaData(data).then(function () {
|
||||
self.htmlPage.changeKeywords(self.keywordList.keywords());
|
||||
self.close();
|
||||
});
|
||||
},
|
||||
@@ -546,10 +547,6 @@ var SeoConfigurator = Dialog.extend({
|
||||
$preview.empty();
|
||||
preview.appendTo($preview);
|
||||
},
|
||||
destroy: function () {
|
||||
this.htmlPage.changeKeywords(this.keywordList.keywords());
|
||||
this._super.apply(this, arguments);
|
||||
},
|
||||
updateTable : function (removed) {
|
||||
var self = this,
|
||||
val = removed ? (this.$el.find('tbody > tr').length - 1) : (this.$el.find('tbody > tr').length);
|
||||
|
||||
Reference in New Issue
Block a user