diff --git a/addons/theme_bootswatch/views/theme.xml b/addons/theme_bootswatch/views/theme.xml index 28aad9e7c5b..2cb5fda3612 100644 --- a/addons/theme_bootswatch/views/theme.xml +++ b/addons/theme_bootswatch/views/theme.xml @@ -2,6 +2,14 @@ + + + + always + + diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js index 0a8ffe7d7ee..0179d3eda65 100644 --- a/addons/web/static/src/js/tour.js +++ b/addons/web/static/src/js/tour.js @@ -337,7 +337,7 @@ var Tour = { + (all ? '\nreferrer: ' + document.referrer : '' ) + (step ? '\nelement: ' + Boolean(!step.element || ($(step.element).size() && $(step.element).is(":visible") && !$(step.element).is(":hidden"))) : '' ) + (step ? '\nwaitNot: ' + Boolean(!step.waitNot || !$(step.waitNot).size()) : '' ) - + (step ? '\nwaitFor: ' + Boolean(!step.waitFor || $(step.waitFor).size()) : '' ); + + (step ? '\nwaitFor: ' + Boolean(!step.waitFor || $(step.waitFor).size()) : '' ) + (all ? "\nlocalStorage: " + JSON.stringify(localStorage) : '' ) + (all ? '\n\n' + $("body").html() : '' ); Tour.log(message, true); 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) { diff --git a/addons/website/static/src/xml/website.theme.xml b/addons/website/static/src/xml/website.theme.xml index 4a5f66267b6..16f4961d367 100644 --- a/addons/website/static/src/xml/website.theme.xml +++ b/addons/website/static/src/xml/website.theme.xml @@ -32,6 +32,8 @@