diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-11-22 10:49:57 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-01 15:49:57 +0000 |
| commit | 3be9ae5672f76f85cd747f57539e7bc2919850f8 (patch) | |
| tree | d8ae6bd1a102c98ddf7c3524a50be2d1fa0367b6 /addons/website_blog/static/src | |
| parent | fdac73e99d6edce1544c25534f8903c637a5507e (diff) | |
[IMP] web_editor, *: automatically update snippet option UI on focus
* website, website_blog, website_sale
Some snippet option already needed to implement this by themself and now
that they use custom widget, this is even more needed. The long-term
goal is that developers should not have to override the onFocus method
or the updateUI method but only the _computeWidgetState method.
Part of https://github.com/odoo/odoo/pull/40282
In preparation of task-2122935 and other tasks
Diffstat (limited to 'addons/website_blog/static/src')
| -rw-r--r-- | addons/website_blog/static/src/js/s_latest_posts_editor.js | 1 | ||||
| -rw-r--r-- | addons/website_blog/static/src/js/website_blog.editor.js | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/addons/website_blog/static/src/js/s_latest_posts_editor.js b/addons/website_blog/static/src/js/s_latest_posts_editor.js index af6235f2e98..e70c4041e6d 100644 --- a/addons/website_blog/static/src/js/s_latest_posts_editor.js +++ b/addons/website_blog/static/src/js/s_latest_posts_editor.js @@ -26,7 +26,6 @@ sOptions.registry.js_get_posts_selectBlog = sOptions.Class.extend({ el.textContent = blog.name; menuEl.appendChild(el); } - return this._updateUI(); }); }, }); diff --git a/addons/website_blog/static/src/js/website_blog.editor.js b/addons/website_blog/static/src/js/website_blog.editor.js index a066451e764..2fdc791cbc9 100644 --- a/addons/website_blog/static/src/js/website_blog.editor.js +++ b/addons/website_blog/static/src/js/website_blog.editor.js @@ -111,7 +111,7 @@ options.registry.CoverProperties.include({ /** * @override */ - _updateUI: async function () { + updateUI: async function () { await this._super(...arguments); var isRegularCover = this.$target.is('.o_wblog_post_page_cover_regular'); var $coverFull = this.$el.find('[data-select-class*="cover_full"]'); |
