dist/assets/js/plugins/storeLocator/jquery.storelocator.js
function() {
			this.writeDebug('emptyResult',arguments);
			var center,
				locList =  $('.' + this.settings.locationList + ' ul'),
				myOptions = this.settings.mapSettings,
				noResults;

			// Create the map
			this.map = new google.maps.Map(document.getElementById(this.settings.mapID), myOptions);

			// Callback
			if (this.settings.callbackNoResults) {
				this.settings.callbackNoResults.call(this, this.map, myOptions);
			}

			// Empty the location list
			locList.empty();

			// Append the no results message
			noResults = $('<li><div class="bh-sl-noresults-title">' + this.settings.noResultsTitle +  '</div><br><div class="bh-sl-noresults-desc">' + this.settings.noResultsDesc + '</li>').hide().fadeIn();
			locList.append(noResults);

			// Center on the original origin or 0,0 if not available
			if ((olat) && (olng)) {
				center = new google.maps.LatLng(olat, olng);
			} else {
				center = new google.maps.LatLng(0, 0);
			}

			this.map.setCenter(center);

			if (originalZoom) {
				this.map.setZoom(originalZoom);
			}
		}
function() {
			this.writeDebug('emptyResult',arguments);
			var center,
				locList =  $('.' + this.settings.locationList + ' ul'),
				myOptions = this.settings.mapSettings,
				noResults;

			// Create the map
			this.map = new google.maps.Map(document.getElementById(this.settings.mapID), myOptions);

			// Callback
			if (this.settings.callbackNoResults) {
				this.settings.callbackNoResults.call(this, this.map, myOptions);
			}

			// Empty the location list
			locList.empty();

			// Append the no results message
			noResults = $('<li><div class="bh-sl-noresults-title">' + this.settings.noResultsTitle +  '</div><br><div class="bh-sl-noresults-desc">' + this.settings.noResultsDesc + '</li>').hide().fadeIn();
			locList.append(noResults);

			// Center on the original origin or 0,0 if not available
			if ((olat) && (olng)) {
				center = new google.maps.LatLng(olat, olng);
			} else {
				center = new google.maps.LatLng(0, 0);
			}

			this.map.setCenter(center);

			if (originalZoom) {
				this.map.setZoom(originalZoom);
			}
		}
function ( ) { this . writeDebug ( 'emptyResult' , arguments ) ; var center , locList = $ ( '.' + this . settings . locationList + ' ul' ) , myOptions = this . settings . mapSettings , noResults ; // Create the map this . map = new google . maps . Map ( document . getElementById ( this . settings . mapID ) , myOptions ) ; // Callback if ( this . settings . callbackNoResults ) { this . settings . callbackNoResults . call ( this , this . map , myOptions ) ; } // Empty the location list locList . empty ( ) ; // Append the no results message noResults = $ ( '<li><div class="bh-sl-noresults-title">' + this . settings . noResultsTitle + '</div><br><div class="bh-sl-noresults-desc">' + this . settings . noResultsDesc + '</li>' ) . hide ( ) . fadeIn ( ) ; locList . append ( noResults ) ; // Center on the original origin or 0,0 if not available if ( ( olat ) && ( olng ) ) { center = new google . maps . LatLng ( olat , olng ) ; } else { center = new google . maps . LatLng ( 0 , 0 ) ; } this . map . setCenter ( center ) ; if ( originalZoom ) { this . map . setZoom ( originalZoom ) ; } }
Handle no results
Handle no results