From a5321938e7201c6d15ed4868c6656c501e5c96d7 Mon Sep 17 00:00:00 2001 From: Andrew Cantino Date: Thu, 9 Jan 2014 22:23:54 -0800 Subject: [PATCH] comment on touchstart.dropdown e.stopPropagation --- vendor/assets/javascripts/bootstrap.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vendor/assets/javascripts/bootstrap.js b/vendor/assets/javascripts/bootstrap.js index ebfcc89a..fcda5789 100644 --- a/vendor/assets/javascripts/bootstrap.js +++ b/vendor/assets/javascripts/bootstrap.js @@ -2024,4 +2024,14 @@ }(window.jQuery); + +// This code taken from: +// twbs/bootstrap#5067 (comment) +// +// It fixes a problem that may be present on certain Android (and other) browsers whereby pop-up menus like Huginn's Account one on the menu bar do not +// open on touch. +// +// The problem and fix is also summarised in this blog post. +// http://alittlecode.com/fix-twitter-bootstraps-dropdown-menus-in-touch-screens/ + $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });