From 1303327e0cbdc3a67ef301e2a968c1a6bef43ee8 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 24 Jul 2013 13:43:45 -0400 Subject: [PATCH] Fix settings dropdown on mobile devices. Issue reported by user1@customer34.invalid (imported from commit b3efa08ac7b4249652a6cd0376aa21217c0435fc) --- zephyr/static/js/ui.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 5a44cd1cdc..dbb6c27191 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -1461,5 +1461,14 @@ exports.process_condensing = function (index, elem) { } }; +$(function () { + // Workaround for Bootstrap issue #5900, which basically makes dropdowns + // unclickable on mobile devices. + // https://github.com/twitter/bootstrap/issues/5900 + $('a.dropdown-toggle, .dropdown-menu a').on('touchstart', function (e) { + e.stopPropagation(); + }); +}); + return exports; }());