summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.snippets.animation.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-10-11 18:23:27 +0200
committerChristophe Simonis <chs@odoo.com>2016-10-11 18:23:27 +0200
commit685e3104ec2ef3e013142d8181f17206744512e3 (patch)
tree940117f52074d1b9a27849752b37d289b6237fbc /addons/website/static/src/js/website.snippets.animation.js
parent3cdf429f8bd3b652446cbc9ff159d23055f97976 (diff)
parent7bdb6f9c8d508346b8638350f7c1444f34ef5adc (diff)
[MERGE] forward port branch 9.0 up to 7bdb6f9
Diffstat (limited to 'addons/website/static/src/js/website.snippets.animation.js')
-rw-r--r--addons/website/static/src/js/website.snippets.animation.js14
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 a278ed1196e..c7b8e60ccad 100644
--- a/addons/website/static/src/js/website.snippets.animation.js
+++ b/addons/website/static/src/js/website.snippets.animation.js
@@ -150,6 +150,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