Skip to content

Commit fa81f65

Browse files
committed
Fixed typos in plugin file, fixed options.md file errors
1 parent 61971b4 commit fa81f65

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@
207207
$('. ' + this.settings.overlay).remove();
208208
}
209209

210-
// Remove map style from cotnainer
210+
// Remove map style from container
211211
$mapDiv.attr('style', '');
212212

213213
// Hide map container
214214
$this.hide();
215215
// Remove data
216216
$.removeData($this.get(0));
217-
// Remove namespached events
217+
// Remove namespaced events
218218
$(document).off(pluginName);
219219
// Unbind plugin
220220
$this.unbind();
@@ -233,7 +233,7 @@
233233

234234
/**
235235
* Notifications
236-
* Some errors use alert by default. This is overrideable with the callbackNotify option
236+
* Some errors use alert by default. This is overridable with the callbackNotify option
237237
*
238238
* @param notifyText {string} the notification message
239239
*/
@@ -543,7 +543,7 @@
543543
},
544544

545545
/**
546-
* Checks to see if all the perperty values in the object are empty
546+
* Checks to see if all the property values in the object are empty
547547
*
548548
* @param obj {Object} the object to check
549549
* @returns {boolean}
@@ -711,7 +711,7 @@
711711
* Marker image setup
712712
*
713713
* @param markerUrl {string} path to marker image
714-
* @param markerWidth {number} width of mearker
714+
* @param markerWidth {number} width of marker
715715
* @param markerHeight {number} height of marker
716716
* @returns {Object} Google Maps icon object
717717
*/
@@ -817,7 +817,7 @@
817817
* @param currentMarker {Object} Google Maps marker
818818
* @param storeStart {number} optional first location on the current page
819819
* @param page {number} optional current page
820-
* @returns {Object} extendded location data object
820+
* @returns {Object} extended location data object
821821
*/
822822
_defineLocationData: function (currentMarker, storeStart, page) {
823823
var indicator = '';
@@ -1153,7 +1153,7 @@
11531153
* @param l {number} iterator from the loop processing the data in the mapping function below
11541154
* @param lat {number} origin latitude
11551155
* @param lng {number} origin longitude
1156-
* @param firstRun {boolean} inital load check
1156+
* @param firstRun {boolean} initial load check
11571157
* @param origin {string} origin address
11581158
* @param maxDistance {number} maximum distance if set
11591159
*/
@@ -1441,7 +1441,7 @@
14411441
}
14421442
}
14431443

1444-
// Check filteres here to handle selected filtering after page reload
1444+
// Check filters here to handle selected filtering after page reload
14451445
if(_this.settings.taxonomyFilters !== null && _this.hasEmptyObjectVals(filters)) {
14461446
_this.checkFilters();
14471447
}
@@ -1563,7 +1563,7 @@
15631563
$this.hide();
15641564
}
15651565

1566-
// Append the no rsults message
1566+
// Append the no results message
15671567
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();
15681568

15691569
// Setup a no results location

options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| formID | 'bh-sl-user-location' | ID of the input form. |
77
| addressID | 'bh-sl-address' | ID of the address input form field. |
88
| regionID | 'bh-sl-region' | ID of the region input form field for country region biasing select field. |
9-
| mapSettings | { zoom : 12, mapTypeId: google.maps.MapTypeId.ROADMAP } | Google maps settings object. |
9+
| mapSettings | { zoom : 12, mapTypeId: google.maps.MapTypeId.ROADMAP } | Google maps settings object. Add all settings including zoom and map type if overriding. |
1010
| markerImg | null | Replacement marker image used for all locations |
1111
| markerDim | null | Replacement marker dimensions object - ex value: { height: 20, width: 20 } |
1212
| catMarkers | null | Multiple replacement marker images based on categories object. Value should be array with image path followed by dimensions - ex value: catMarkers : {'Restaurant' : ['img/red-marker.svg', 32, 32]}
@@ -54,7 +54,7 @@
5454
| taxonomyFilters | null | Filtering object that can be used to set up live filtering (see categories example). |
5555
| taxonomyFiltersContainer | 'bh-sl-filters-container' | Class of the container around the filters. |
5656
| querystringParams | false | Set to true to enable query string support for passing input variables from page to page. |
57-
| notify | null | Callback that can override the notify method. |
57+
| callbackNotify | null | Callback that can override the notify method. |
5858
| callbackBeforeSend | null | Callback that fires before the AJAX request. |
5959
| callbackSuccess | null | Callback that fires on successful AJAX request. |
6060
| callbackModalOpen | null | Callback that fires when a modal opens. |

src/js/jquery.storelocator.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@
203203
$('. ' + this.settings.overlay).remove();
204204
}
205205

206-
// Remove map style from cotnainer
206+
// Remove map style from container
207207
$mapDiv.attr('style', '');
208208

209209
// Hide map container
210210
$this.hide();
211211
// Remove data
212212
$.removeData($this.get(0));
213-
// Remove namespached events
213+
// Remove namespaced events
214214
$(document).off(pluginName);
215215
// Unbind plugin
216216
$this.unbind();
@@ -229,7 +229,7 @@
229229

230230
/**
231231
* Notifications
232-
* Some errors use alert by default. This is overrideable with the callbackNotify option
232+
* Some errors use alert by default. This is overridable with the callbackNotify option
233233
*
234234
* @param notifyText {string} the notification message
235235
*/
@@ -539,7 +539,7 @@
539539
},
540540

541541
/**
542-
* Checks to see if all the perperty values in the object are empty
542+
* Checks to see if all the property values in the object are empty
543543
*
544544
* @param obj {Object} the object to check
545545
* @returns {boolean}
@@ -707,7 +707,7 @@
707707
* Marker image setup
708708
*
709709
* @param markerUrl {string} path to marker image
710-
* @param markerWidth {number} width of mearker
710+
* @param markerWidth {number} width of marker
711711
* @param markerHeight {number} height of marker
712712
* @returns {Object} Google Maps icon object
713713
*/
@@ -813,7 +813,7 @@
813813
* @param currentMarker {Object} Google Maps marker
814814
* @param storeStart {number} optional first location on the current page
815815
* @param page {number} optional current page
816-
* @returns {Object} extendded location data object
816+
* @returns {Object} extended location data object
817817
*/
818818
_defineLocationData: function (currentMarker, storeStart, page) {
819819
var indicator = '';
@@ -1149,7 +1149,7 @@
11491149
* @param l {number} iterator from the loop processing the data in the mapping function below
11501150
* @param lat {number} origin latitude
11511151
* @param lng {number} origin longitude
1152-
* @param firstRun {boolean} inital load check
1152+
* @param firstRun {boolean} initial load check
11531153
* @param origin {string} origin address
11541154
* @param maxDistance {number} maximum distance if set
11551155
*/
@@ -1437,7 +1437,7 @@
14371437
}
14381438
}
14391439

1440-
// Check filteres here to handle selected filtering after page reload
1440+
// Check filters here to handle selected filtering after page reload
14411441
if(_this.settings.taxonomyFilters !== null && _this.hasEmptyObjectVals(filters)) {
14421442
_this.checkFilters();
14431443
}
@@ -1559,7 +1559,7 @@
15591559
$this.hide();
15601560
}
15611561

1562-
// Append the no rsults message
1562+
// Append the no results message
15631563
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();
15641564

15651565
// Setup a no results location

0 commit comments

Comments
 (0)