diff options
| author | Richard Sassine <richardsassine@tutanota.com> | 2021-05-04 18:00:38 +0300 |
|---|---|---|
| committer | Richard Sassine <richardsassine@tutanota.com> | 2021-05-04 18:00:38 +0300 |
| commit | ad97722b1b35aff50d0adf13a19715f7b8373c07 (patch) | |
| tree | edf36f1114b896a01602e31dafd74efe45736427 /theme_common/static/src/old_snippets/s_animated_boxes/000.js | |
initial commit
Diffstat (limited to 'theme_common/static/src/old_snippets/s_animated_boxes/000.js')
| -rw-r--r-- | theme_common/static/src/old_snippets/s_animated_boxes/000.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/theme_common/static/src/old_snippets/s_animated_boxes/000.js b/theme_common/static/src/old_snippets/s_animated_boxes/000.js new file mode 100644 index 0000000..ec39eab --- /dev/null +++ b/theme_common/static/src/old_snippets/s_animated_boxes/000.js @@ -0,0 +1,15 @@ +odoo.define('theme_common.s_animated_boxes_frontend', function (require) { + 'use strict'; + +var publicWidget = require('web.public.widget'); + +/** + * This is a fix for some apple devices. + * The slide of animated boxes widget is shown on hover or click on mobile + * devices, but iOS only activates :hover if the element targeted is + * clickable. + */ +publicWidget.registry._fixAnimatedBoxesAppleClick = publicWidget.registry._fixAppleCollapse.extend({ + selector: '.s_animated_boxes .item', +}); +}); |
