Created
August 3, 2016 06:53
-
-
Save wpflippercode/36f3b309a6ec286aa0068b0d1b92e559 to your computer and use it in GitHub Desktop.
Google Maps Fix for Twitter's Bootstrap Modals
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($){ | |
$("#yourModal").on("shown.bs.modal", 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