sr-npm 1.7.213 → 1.7.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pages/careersPage.js +5 -4
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -238,7 +238,7 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
|
|
|
238
238
|
|
|
239
239
|
const count = await updateCount(_$w);
|
|
240
240
|
console.log("updating map markers");
|
|
241
|
-
await updateMapMarkers(_$w
|
|
241
|
+
await updateMapMarkers(_$w);
|
|
242
242
|
console.log("updating map markers completed");
|
|
243
243
|
count ? _$w('#resultsMultiState').changeState('results') : _$w('#resultsMultiState').changeState('noResults');
|
|
244
244
|
|
|
@@ -258,7 +258,8 @@ async function resetFilters(_$w) {
|
|
|
258
258
|
|
|
259
259
|
_$w('#resetFiltersButton').disable();
|
|
260
260
|
|
|
261
|
-
queryParams.remove(["keyWord", "department","page"]);
|
|
261
|
+
queryParams.remove(["keyWord", "department","page","location"]);
|
|
262
|
+
await updateMapMarkers(_$w);
|
|
262
263
|
|
|
263
264
|
await updateCount(_$w);
|
|
264
265
|
}
|
|
@@ -338,9 +339,9 @@ async function handleLocationParam(_$w,location) {
|
|
|
338
339
|
|
|
339
340
|
}
|
|
340
341
|
|
|
341
|
-
async function updateMapMarkers(_$w
|
|
342
|
-
if(count>0){
|
|
342
|
+
async function updateMapMarkers(_$w){
|
|
343
343
|
const numOfItems = await _$w('#jobsDataset').getTotalCount();
|
|
344
|
+
if(numOfItems>0){
|
|
344
345
|
const items = await _$w('#jobsDataset').getItems(0, numOfItems);
|
|
345
346
|
const markers = items.items.map(item => {
|
|
346
347
|
const location = item.locationAddress.location;
|