Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbedair committed May 19, 2014
1 parent 9ab8b62 commit c08a6ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/assets/js/bootstrap-noconflict.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ var bootstrapButton, bootstrapTooltip;
(function ($) {
bootstrapButton = $.fn.button;
bootstrapTooltip = $.fn.tooltip;

/* fix for #811 based on suggested solution at https://github.com/twbs/bootstrap/issues/4550 */
$('.dropdown a').click(function(e) {
e.preventDefault();
setTimeout($.proxy(function() {
if ('ontouchstart' in document.documentElement) {
$(this).siblings('.dropdown-backdrop').off().remove();
}
}, this), 0);
});

})(jQuery);

0 comments on commit c08a6ef

Please sign in to comment.