Skip to content

Commit

Permalink
fix popovers on touch devices, closes #139
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Dec 6, 2016
1 parent 7b8b2e7 commit 7be0c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ $.fn.googlecodeprettify = function () {
$('.prettyprint').googlecodeprettify();

// remove popovers when clicking somewhere
$('body').on('click', function (e) {
$('body').on('click touchstart', function (e) {
$('[data-original-title]').each(function () {
//the 'is' for buttons that trigger popups
//the 'has' for icons within a button that triggers a popup
Expand Down

0 comments on commit 7be0c14

Please sign in to comment.