summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/menu
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-10-21 16:08:37 +0000
committerRomain Derie <rde@odoo.com>2019-10-31 10:02:09 +0000
commit5e3d6c0032214c5eec92532070b1041c285b03c5 (patch)
tree2a3daede0b89cf047da2bedb99b91970c7e22e9f /addons/website/static/src/js/menu
parent0ce6eea5bd451ac83a4fee269d0b994ed1d3b752 (diff)
[IMP] web_editor: stay on editor on snippet install
In the editor, the snippets from uninstalled module are shown with the possibility to install the module to get snippet. Before this commit: When clicking on it, it will redirect to the module page, in the backend from where you can install the module. Now: A popup will be shown to save current changes and install the module. The installation will be done without changing page, in the editor. Once done, the page will reload in editor enabled mode. task-2089285 closes odoo/odoo#39138 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/menu')
-rw-r--r--addons/website/static/src/js/menu/new_content.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/menu/new_content.js b/addons/website/static/src/js/menu/new_content.js
index 46a2ce7d7e2..50d46e81221 100644
--- a/addons/website/static/src/js/menu/new_content.js
+++ b/addons/website/static/src/js/menu/new_content.js
@@ -285,7 +285,7 @@ var NewContentMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({
$p.text(_.str.sprintf(self.newContentText.failed, name));
});
}
- },{
+ }, {
text: _t("Cancel"),
close: true,
}];
@@ -294,7 +294,7 @@ var NewContentMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({
new Dialog(this, {
title: title,
size: 'medium',
- $content: $('<p/>', {text: content}),
+ $content: $('<div/>', {text: content}),
buttons: buttons
}).open();
},