diff options
| author | fw-bot <otis@odoo.com> | 2019-11-06 17:20:08 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2019-11-07 07:53:34 +0000 |
| commit | 596b3723f249e0f556fc4a47abe5dd8db2d070dd (patch) | |
| tree | 51f7462c2114ef956f158b4831cb950bbddccf7d /addons | |
| parent | 71c1104e5fb9d208bece9241eb4a673b19d0afbe (diff) | |
[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>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website/static/src/js/menu/content.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website/static/src/js/menu/content.js b/addons/website/static/src/js/menu/content.js index 521e4bf8760..54720327968 100644 --- a/addons/website/static/src/js/menu/content.js +++ b/addons/website/static/src/js/menu/content.js @@ -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 => { |
