[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:
Thanh Dodeur
2020-10-08 09:14:24 +00:00
parent d339342bed
commit a4975d8a4a
2 changed files with 2 additions and 2 deletions
@@ -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: [
+1 -1
View File
@@ -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"/>