Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn2404 committed Jan 10, 2021
1 parent b4e229f commit bdc03dc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
26 changes: 18 additions & 8 deletions dist/assets/js/plugins/storeLocator/jquery.storelocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@
* Check for query string
*
* @param param {string} query string parameter to test
*
* @returns {string} query string value
*/
getQueryString: function(param) {
Expand Down Expand Up @@ -794,6 +795,7 @@
*
* @param num {number} the full number
* @param dec {number} the number of digits to show after the decimal
*
* @returns {number}
*/
roundNumber: function (num, dec) {
Expand All @@ -805,6 +807,7 @@
* Checks to see if the object is empty. Using this instead of $.isEmptyObject for legacy browser support
*
* @param obj {Object} the object to check
*
* @returns {boolean}
*/
isEmptyObject: function (obj) {
Expand All @@ -821,6 +824,7 @@
* Checks to see if all the property values in the object are empty
*
* @param obj {Object} the object to check
*
* @returns {boolean}
*/
hasEmptyObjectVals: function (obj) {
Expand Down Expand Up @@ -1002,6 +1006,7 @@
*
* @param data {array} data array to check for filter values
* @param filters {Object} taxonomy filters object
*
* @returns {boolean}
*/
filterData: function (data, filters) {
Expand Down Expand Up @@ -1030,6 +1035,7 @@
*
* @param currentPage {number}
* @param totalPages {number}
*
* @returns {string}
*/
_paginationOutput: function(currentPage, totalPages) {
Expand Down Expand Up @@ -1111,6 +1117,7 @@
* @param markerUrl {string} path to marker image
* @param markerWidth {number} width of marker
* @param markerHeight {number} height of marker
*
* @returns {Object} Google Maps icon object
*/
markerImage: function (markerUrl, markerWidth, markerHeight) {
Expand Down Expand Up @@ -1147,6 +1154,7 @@
* points
* @param map {Object} the Google Map
* @param category {string} location category/categories
*
* @returns {Object} Google Maps marker
*/
createMarker: function (point, name, address, letter, map, category) {
Expand Down Expand Up @@ -1227,6 +1235,7 @@
* @param currentMarker {Object} Google Maps marker
* @param storeStart {number} optional first location on the current page
* @param page {number} optional current page
*
* @returns {Object} extended location data object
*/
_defineLocationData: function (currentMarker, storeStart, page) {
Expand Down Expand Up @@ -1529,6 +1538,7 @@
* Get the address by marker ID
*
* @param markerID {number} location ID
*
* @returns {string} formatted address
*/
getAddressByMarker: function(markerID) {
Expand Down Expand Up @@ -2608,24 +2618,24 @@
return featuredset;
},

/**
/**
* Restrict featured locations by distance.
*
* @returns {Array}
*/
*/
featuredRestrictions: function(mappingObject) {
this.writeDebug('featuredRestrictions',arguments);
this.writeDebug('featuredRestrictions',arguments);

if (this.settings.featuredDistance === null) {
return featuredset;
}

// Featured locations radius restriction.
if (this.settings.featuredDistance !== null) {
featuredset = this.featuredDistanceRestriction(mappingObject);
}
if (this.settings.featuredDistance !== null) {
featuredset = this.featuredDistanceRestriction(mappingObject);
}

return featuredset;
return featuredset;
},

/**
Expand Down Expand Up @@ -2818,7 +2828,7 @@
if (!taxFilters[k]) {
taxFilters[k] = [];
}
taxFilters[k][z] = '(?:^|\\s)' + filters[k][z].replace(/([.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, '');
taxFilters[k][z] = '(?=.*' + filters[k][z].replace(/([.*+?^=!:${}()|\[\]\/\\]|&\s+)/g, '') + '(?!\\s))';
}
}
}
Expand Down
Loading

0 comments on commit bdc03dc

Please sign in to comment.