summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.theme.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-08-12 15:11:50 +0200
committerChristophe Matthieu <chm@odoo.com>2014-08-20 10:28:19 +0200
commitc2677880400b988c5dc1b779edb2d7736e81aafe (patch)
tree8e359a78f057c674f615821acbcdfc4598a95211 /addons/website/static/src/js/website.theme.js
parent95ec1faf1435f29c869fdcc03b79b8f1634e6b9c (diff)
[FIX] website.theme: when the user does not raise an exception. Display error message when the user install or customize a theme.
Diffstat (limited to 'addons/website/static/src/js/website.theme.js')
-rw-r--r--addons/website/static/src/js/website.theme.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/website/static/src/js/website.theme.js b/addons/website/static/src/js/website.theme.js
index af23b6e3dc5..61655ea3e7b 100644
--- a/addons/website/static/src/js/website.theme.js
+++ b/addons/website/static/src/js/website.theme.js
@@ -244,14 +244,15 @@
openerp.website.ready().done(function() {
function theme_customize() {
- var error = window.getComputedStyle(document.body, ':before').getPropertyValue('content');
- if (error && error !== 'none') {
- return themeError(eval(error));
- }
var Theme = openerp.website.Theme;
if (Theme.open && !Theme.open.isDestroyed()) return;
Theme.open = new Theme();
Theme.open.appendTo("body");
+
+ var error = window.getComputedStyle(document.body, ':before').getPropertyValue('content');
+ if (error && error !== 'none') {
+ themeError(eval(error));
+ }
}
$(document).on('click', "#theme_customize a",theme_customize);
if ((window.location.hash || "").indexOf("theme=true") !== -1) {