Sha256: e055322fe016d48e87b7f42441975ddd834c99b4dc71cda1237ed3ec4be7d6da
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
var PwbSectionsController = Paloma.controller('Pwb/Sections'); PwbSectionsController.prototype.contact_us = function() { var currentItemForMap = this.params.current_agency_primary_address; // http://stackoverflow.com/questions/2647867/how-to-determine-if-variable-is-undefined-or-null // if (currentItemForMap == null) { if (!this.params.show_contact_map) { return; } if (typeof google === "undefined") { var self = this; window.map_callback = function() { INMOAPP.showMap(currentItemForMap); }; $.getScript('https://maps.googleapis.com/maps/api/js?key=AIzaSyCPorm8YzIaUGhKfe5cvpgofZ_gdT8hdZw&v=3.exp&sensor=false&callback=map_callback&libraries=places'); } else { INMOAPP.showMap(currentItemForMap); } };
Version data entries
4 entries across 4 versions & 1 rubygems