[IMP] website: improves the menu edition
This commit allows user to edit other menus by clicking on them the same way the global menu is edited. task-2272226 closes odoo/odoo#55881 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -1060,7 +1060,7 @@ options.registry.menu_data = options.Class.extend({
|
||||
},
|
||||
});
|
||||
}},
|
||||
{text: _t("Edit the menu"), classes: 'btn-primary', click: function () {
|
||||
{text: _t("Edit the menu"), classes: 'btn-primary', close: true, click: function () {
|
||||
this.trigger_up('action_demand', {
|
||||
actionName: 'edit_menu',
|
||||
params: [
|
||||
|
||||
@@ -516,7 +516,7 @@
|
||||
</div>
|
||||
|
||||
<div data-js="menu_data"
|
||||
data-selector="#top_menu li > a"
|
||||
data-selector="#top_menu li > a, [data-content_menu_id] li > a"
|
||||
data-exclude=".dropdown-toggle, li.o_header_menu_button a, [data-toggle], .o_offcanvas_logo"
|
||||
data-no-check="true"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user