diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-10-11 19:07:42 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-10-11 19:07:42 +0200 |
| commit | f3532a6da6b2f02f100ebf2ae557048a8cfada73 (patch) | |
| tree | 6d4ae6ef87305fa37f951bfdd213ab4d02783960 /addons/website/static/src | |
| parent | 341bea8f88e3c66c438cb44ca03f47a6e9270d32 (diff) | |
| parent | 54ebe31f51c2e2e751df6335762511200aa06209 (diff) | |
[MERGE] forward port branch saas-12 up to 54ebe31
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.animation.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js index 02ebc717ad9..5d55a25bdb0 100644 --- a/addons/website/static/src/js/website.snippets.animation.js +++ b/addons/website/static/src/js/website.snippets.animation.js @@ -147,6 +147,20 @@ animation.registry.ul = animation.Class.extend({ }, }); +/** + * This is a fix for apple device (<= IPhone 4, IPad 2) + * Standard bootstrap requires data-toggle='collapse' element to be <a/> tags. Unfortunatly one snippet uses a + * <div/> tag instead. The fix forces an empty click handler on these div, which allows standard bootstrap to work. + * + * This should be removed in a future odoo snippets refactoring. + */ +animation.registry._fix_apple_collapse = animation.Class.extend({ + selector: ".s_faq_collapse [data-toggle='collapse']", + start: function () { + this.$target.off("click._fix_apple_collapse").on("click._fix_apple_collapse", function () {}); + }, +}); + /* ------------------------------------------------------------------------- Gallery Animation |
