Created
August 3, 2016 06:48
-
-
Save wpflippercode/1fc46599c6061c97e1d255161055618d to your computer and use it in GitHub Desktop.
Google Maps Fix for Twitter's Bootstrap Tabs Plugin
This file contains hidden or 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
add_action('wp_head','flippercode_maps_fix'); | |
function flippercode_maps_fix() | |
{ ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('body').on('click','.nav-tabs li',function(){ | |
if(typeof map1 != 'undefined') { | |
$(map1).data('wpgmp_maps').resize_map(); | |
} | |
}); | |
}); | |
</script> <?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment