diff options
| author | David Monjoie <dmo@odoo.com> | 2019-03-11 13:51:46 +0000 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2019-03-14 10:11:26 +0000 |
| commit | b9da1755747c6fc791ae81d04e79fb3ae7642c64 (patch) | |
| tree | 644c28cb1a34fc6d6ca51c32a61c2cc0dda58a30 /addons/pos_restaurant/static/src/xml | |
| parent | 1f68cb87f08aa7636f087f697f21508f503fd537 (diff) | |
[FIX] pos_restaurant: fix table editing broken after jQuery update
The table edition feature of pos_restaurant was using an old lib
that was never updated to newer versions of jQuery by its author.
For unknown reason, this library went unnoticed when we updated our
codebase to jQuery 3.
Since this library is impossible to update per se, I decided to
remove it entirely and replace it by calls to jQuery.ui.
However, the point of this lib was to handle touch events, which
jQuery.ui does not. For this, this commit introduces a new
library which translates touch events to their click counterparts.
Tested on:
- Chrome (Windows, MacOS, Linux, Android, iOS)
- Firefox (Windows, MacOS, Linux, Android, iOS)
- Safari (MacOS, iOS)
- Edge (Windows, iOS)
- IE11 (Windows)
- Samsung Internet (Android)
closes odoo/odoo#31719
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/pos_restaurant/static/src/xml')
| -rw-r--r-- | addons/pos_restaurant/static/src/xml/floors.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/pos_restaurant/static/src/xml/floors.xml b/addons/pos_restaurant/static/src/xml/floors.xml index 76ad7e321a0..36423b93d67 100644 --- a/addons/pos_restaurant/static/src/xml/floors.xml +++ b/addons/pos_restaurant/static/src/xml/floors.xml @@ -62,16 +62,16 @@ </span> <span class="table-seats"><t t-esc="widget.table.seats" /></span> <t t-if="widget.table.shape === 'round'"> - <span class='table-handle top'></span> - <span class='table-handle bottom'></span> - <span class='table-handle left'></span> - <span class='table-handle right'></span> + <span class='table-handle top ui-resizable-n'></span> + <span class='table-handle bottom ui-resizable-s'></span> + <span class='table-handle left ui-resizable-w'></span> + <span class='table-handle right ui-resizable-e'></span> </t> <t t-if="widget.table.shape === 'square'"> - <span class='table-handle top right'></span> - <span class='table-handle top left'></span> - <span class='table-handle bottom right'></span> - <span class='table-handle bottom left'></span> + <span class='table-handle top right ui-resizable-ne'></span> + <span class='table-handle top left ui-resizable-nw'></span> + <span class='table-handle bottom right ui-resizable-se'></span> + <span class='table-handle bottom left ui-resizable-sw'></span> </t> </div> </t> |
