diff options
| author | Romeo Fragomeli <rfr@odoo.com> | 2019-10-17 13:54:53 +0000 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2019-10-18 12:59:08 +0000 |
| commit | 78b9dad560aec804bf67eb7e656443bac9caefbf (patch) | |
| tree | 7c06a9bdf4af77313c5f2dc78e5bdd66ba48d480 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 9831ed08fe60f36244e8e941012ca6866cab3e16 (diff) | |
[REF] web,barcodes: simplify mobile device detection
In this commit, we introduce "isMobileDevice".
Do not confuse with isMobile.
isMobile:
A frequent use case is to have a different render in 'mobile' mode,
meaning when the screen is small. This flag (boolean) is true when
the size is XS/VSM/SM. It is also updated dynamically.
isMobileDevice:
Mobile device detection using userAgent.
This flag doesn't depend on the size/resolution of the screen.
It targets mobile devices which suggests that there is a virtual keyboard.
Task ID: 2090202
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
