diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-09-29 14:04:48 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-09-29 14:41:41 +0200 |
| commit | 87f1e360a89eb7617d5fd60cad58a143bea441df (patch) | |
| tree | 3b8203b8d38d71b3286ef301a4886595341b7c7a /addons/web/static/src/js/services | |
| parent | 34a7d9a1fb00cf369cebdddfa7ffe217d603542f (diff) | |
[FIX] web, mail, base: config's `isMobile` definition
The `isMobile` variable was defined at the right place (`config.device`)
but was set at the wrong place (`config`).
Thank you for making me author of all the `isMobile` lines by
the way... :)
Diffstat (limited to 'addons/web/static/src/js/services')
| -rw-r--r-- | addons/web/static/src/js/services/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/services/config.js b/addons/web/static/src/js/services/config.js index f892801a593..4cd60638113 100644 --- a/addons/web/static/src/js/services/config.js +++ b/addons/web/static/src/js/services/config.js @@ -78,7 +78,7 @@ function _updateSizeProps() { var sc = _getSizeClass(); if (sc !== config.device.size_class) { config.device.size_class = sc; - config.isMobile = config.device.size_class <= config.device.SIZES.XS; + config.device.isMobile = config.device.size_class <= config.device.SIZES.XS; core.bus.trigger('size_class', sc); } } |
