diff options
| author | kma-odoo <kma@odoo.com> | 2020-01-03 08:56:18 +0000 |
|---|---|---|
| committer | jpr-odoo <jpr@openerp.com> | 2020-01-31 12:03:36 +0000 |
| commit | d98d563b51469a8bf4f42158eeb533992699b67a (patch) | |
| tree | 1a8fcf5fdc36c1020c9ccd0fd80063bff351a0aa /addons/website/static/src/js/menu | |
| parent | 21df11e86d1aab5df2f23828f7af39f9f5bed2f2 (diff) | |
[FIX] website: keywords list appear correctly in Optimize SEO dialog
As the keywords are added in the DOM and its' table is also toggled at
the same time, we've to put the toggling of the table after the keywords
pushed in to the DOM.
task-2063206
closes odoo/odoo#44374
X-original-commit: 09c183ab501f834666e9b292ddb9839e2f3ecc1c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/js/menu')
| -rw-r--r-- | addons/website/static/src/js/menu/seo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/menu/seo.js b/addons/website/static/src/js/menu/seo.js index a4e9995dbbc..16492318c54 100644 --- a/addons/website/static/src/js/menu/seo.js +++ b/addons/website/static/src/js/menu/seo.js @@ -175,7 +175,7 @@ var KeywordList = Widget.extend({ exists: function (word) { return _.contains(this.keywords(), word); }, - add: function (candidate, language) { + add: async function (candidate, language) { var self = this; // TODO Refine var word = candidate ? candidate.replace(/[,;.:<>]+/g, ' ').replace(/ +/g, ' ').trim().toLowerCase() : ''; @@ -192,7 +192,7 @@ var KeywordList = Widget.extend({ keyword.on('selected', self, function (word, language) { self.trigger('selected', word, language); }); - keyword.appendTo(self.$el); + await keyword.appendTo(self.$el); } if (self.isFull()) { self.trigger('list-full'); |
