Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created October 1, 2012 19:20
Show Gist options
  • Save rosshanney/3813838 to your computer and use it in GitHub Desktop.
Save rosshanney/3813838 to your computer and use it in GitHub Desktop.
Closes GCE tooltips when clicked / tapped
<?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