summaryrefslogtreecommitdiff
path: root/addons/website_form
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-07-08 15:47:01 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-14 14:43:16 +0000
commitd23a9c1954a79c4a9b49ad1319f4cf30514a9230 (patch)
treece61a645115b5c1630c7b0df959cf3be0b22055b /addons/website_form
parentb96c0eaf38af2307206bc62d5bd4e028e7a29a4d (diff)
[IMP] web_editor, *: introduce new "button group" editor widget
*: website, website_form Basically work just as a we-select but with a different design. Part of https://github.com/odoo/odoo/pull/53930 task-2157252
Diffstat (limited to 'addons/website_form')
-rw-r--r--addons/website_form/static/src/snippets/s_website_form/options.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_form/static/src/snippets/s_website_form/options.js b/addons/website_form/static/src/snippets/s_website_form/options.js
index 173a1aa8dab..80aa99e025b 100644
--- a/addons/website_form/static/src/snippets/s_website_form/options.js
+++ b/addons/website_form/static/src/snippets/s_website_form/options.js
@@ -1012,7 +1012,7 @@ options.registry.WebsiteFieldEditor = FieldEditor.extend({
const togglerEl = document.createElement('we-toggler');
togglerEl.textContent = addItemTitle;
addItemButton.appendChild(togglerEl);
- const selectMenuEl = document.createElement('we-select-menu');
+ const selectMenuEl = document.createElement('we-selection-items');
addItemButton.appendChild(selectMenuEl);
this._loadListDropdown(selectMenuEl);
}
@@ -1035,7 +1035,7 @@ options.registry.WebsiteFieldEditor = FieldEditor.extend({
* @param {HTMLElement} selectMenu
*/
_loadListDropdown: function (selectMenu) {
- selectMenu = selectMenu || this.el.querySelector('we-list we-select-menu');
+ selectMenu = selectMenu || this.el.querySelector('we-list we-selection-items');
if (selectMenu) {
selectMenu.innerHTML = '';
const field = Object.assign({}, this.fields[this._getFieldName()]);