[FIX] website: link dialog over image adaptation
Adapt website for 13.0 9996d04fd2 change of LinkDialog constructor arguments (to get back to same arguments as in 12.0). opw-2086444 closes #39888 closes odoo/odoo#39910 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
committed by
Nicolas Lempereur
parent
71c1104e5f
commit
596b3723f2
@@ -413,10 +413,10 @@ var MenuEntryDialog = weWidgets.LinkDialog.extend({
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
init: function (parent, options, data) {
|
||||
init: function (parent, options, editable, data) {
|
||||
this._super(parent, _.extend({
|
||||
title: _t("Add a menu item"),
|
||||
}, options || {}), _.extend({
|
||||
}, options || {}), editable, _.extend({
|
||||
needLabel: true,
|
||||
text: data.name || '',
|
||||
isNewWindow: data.new_window,
|
||||
@@ -691,7 +691,7 @@ var EditMenuDialog = weWidgets.Dialog.extend({
|
||||
var menuID = $menu.data('menu-id');
|
||||
var menu = this.flat[menuID];
|
||||
if (menu) {
|
||||
var dialog = new MenuEntryDialog(this, {}, _.extend({
|
||||
var dialog = new MenuEntryDialog(this, {}, null, _.extend({
|
||||
menuType: menu.fields['is_mega_menu'] ? 'mega' : undefined,
|
||||
}, menu.fields));
|
||||
dialog.on('save', this, link => {
|
||||
|
||||
Reference in New Issue
Block a user