Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Don't use qTip on iPad either
Browse files Browse the repository at this point in the history
  • Loading branch information
drpowell committed Jul 15, 2011
1 parent 8e36d52 commit cd062f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion r2/r2/public/static/main.js
Expand Up @@ -39,9 +39,12 @@ $(document).ready(function() {

function isiPhone() {
return ((navigator.platform.indexOf("iPhone") != -1) ||
(navigator.platform.indexOf("iPod") != -1));
(navigator.platform.indexOf("iPod") != -1) ||
(navigator.platform.indexOf("iPad") != -1));
};

/* Don't do qtip tooltips with iphones (and related), it seems to interfer with the
normal onclick behaviour */
if (!isiPhone()) {
// Button tooltips
$('div.tools div.vote a, div.tools div.boxright a.edit, div.tools div.boxright a.save, div.boxright a.hide, div.comment-links ul li a').qtip({
Expand Down

0 comments on commit cd062f0

Please sign in to comment.