Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Last active December 11, 2015 03:48
Show Gist options
  • Select an option

  • Save objectivehtml/4540145 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/4540145 to your computer and use it in GitHub Desktop.
$(document).ready(function() { var Gmap = GmapGlobal.object[0]; var fieldName = 'member_location'; if(Gmap.settings.field_name == fieldName) { Gmap.bind('gmapInit', function(Gmap) { }); } });
$(document).ready(function() {
var Gmap = GmapGlobal.object[0];
var fieldName = 'member_location';
if(Gmap.settings.field_name == fieldName) {
Gmap.bind('gmapInit', function(Gmap) {
alert("init");
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment