Created
October 1, 2012 19:20
-
-
Save rosshanney/3813838 to your computer and use it in GitHub Desktop.
Closes GCE tooltips when clicked / tapped
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin name: Close GCE tooltips | |
Description: Causes Google Calendar Events tooltips to close when clicked / tapped. | |
*/ | |
function gce_close_tooltips() { | |
?> | |
<script type="text/javascript"> | |
function gce_close_tooltips() { | |
jQuery('.gce-event-info').click(function(){ | |
jQuery('.qtip').hide(); | |
}); | |
} | |
jQuery(document).ready(function(){ | |
jQuery('html').ajaxSuccess(function() { | |
gce_close_tooltips(); | |
}); | |
gce_close_tooltips(); | |
}); | |
</script> | |
<?php | |
} | |
add_action( 'wp_head', 'gce_close_tooltips' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment