diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-07-13 15:27:47 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-07-13 16:13:04 +0200 |
| commit | 9b77d76e71a55bfc3caba6377cee6370941c5e65 (patch) | |
| tree | 470e901498e6ffc3dce343f7f62730f7fbbbfadd /addons/website/static/src/js/website.theme.js | |
| parent | 05a143a416fb3541d93de1b6f7bcb4c4c891cbf0 (diff) | |
[FIX] web,website,point_of_sale: session.debug value
Now that the debug URL parameter can be equal to "assets", the session
debug variable has to be updated to not only be true or false. Now, its
value is false if the debug parameter is not specified in the url and
a the URL parameter string value otherwise (or 1 if the value is an
empty string).
Also modify all redirection which kept the debug mode to also keep
=assets. Use the $.param.querystring function.
Diffstat (limited to 'addons/website/static/src/js/website.theme.js')
| -rw-r--r-- | addons/website/static/src/js/website.theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.theme.js b/addons/website/static/src/js/website.theme.js index 6b4fd81c7ae..2db3d1c0e5d 100644 --- a/addons/website/static/src/js/website.theme.js +++ b/addons/website/static/src/js/website.theme.js @@ -127,7 +127,7 @@ var Theme = Widget.extend({ } this.$el.addClass('loading'); - if (!reload && !session.debug) { + if (!reload && session.debug !== "assets") { var self = this; return ajax.jsonRpc('/website/theme_customize', 'call', { enable: enable, |
