sr-npm 1.7.489 → 1.7.490
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 +2 -3
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -107,7 +107,7 @@ async function handleUrlParams(_$w) {
|
|
|
107
107
|
await handleJobTypeParam(_$w,queryJobTypeVar);
|
|
108
108
|
}
|
|
109
109
|
console.log("_$w('#dropdownBrand'): ", _$w('#dropdownBrand'));
|
|
110
|
-
if (queryBrandVar && _$w('#dropdownBrand').isVisible
|
|
110
|
+
if (queryBrandVar && _$w('#dropdownBrand').isVisible) { //if it is not visible, ignore it
|
|
111
111
|
await handleBrandParam(_$w,queryBrandVar);
|
|
112
112
|
}
|
|
113
113
|
await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
@@ -234,7 +234,7 @@ async function handleBackAndForth(_$w){
|
|
|
234
234
|
deletedParam=true;
|
|
235
235
|
_$w('#dropdownJobType').value = '';
|
|
236
236
|
}
|
|
237
|
-
if(_$w('#dropdownBrand').isVisible
|
|
237
|
+
if(_$w('#dropdownBrand').isVisible){
|
|
238
238
|
if(newQueryParams.brand){
|
|
239
239
|
queryBrandVar=newQueryParams.brand;
|
|
240
240
|
}
|
|
@@ -496,7 +496,6 @@ async function updateMapMarkers(_$w){
|
|
|
496
496
|
|
|
497
497
|
async function handleBrandDropdown(_$w){
|
|
498
498
|
const brands=await wixData.query("Brands").find();
|
|
499
|
-
console.log("brands: ", brands);
|
|
500
499
|
if(brands.items.length>1){
|
|
501
500
|
console.log("showing brand dropdown");
|
|
502
501
|
_$w('#dropdownBrand').show();
|