diff options
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', +}); +}); |
