sr-npm 1.7.1274 → 1.7.1276
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
CHANGED
|
@@ -73,8 +73,9 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
async function handleBackAndForth(_$w){
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
const newQueryParams=await location.query();
|
|
78
|
+
await clearAll(_$w,true);
|
|
78
79
|
await handleUrlParams(_$w,newQueryParams,true);
|
|
79
80
|
// if(ActivateURLOnchange) {
|
|
80
81
|
// const newQueryParams=await location.query();
|
|
@@ -118,7 +119,7 @@ async function clearAll(_$w,urlOnChange=false) {
|
|
|
118
119
|
keywordAllJobs=undefined;
|
|
119
120
|
if(!urlOnChange) {
|
|
120
121
|
console.log("inside clearAll removing url params");
|
|
121
|
-
|
|
122
|
+
// ActivateURLOnchange=false;
|
|
122
123
|
queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
|
|
123
124
|
|
|
124
125
|
await updateJobsAndNumbersAndFilters(_$w,true);
|
|
@@ -314,7 +315,7 @@ async function handleParams(_$w,param,values) {
|
|
|
314
315
|
const field=getFieldById(fieldId,allfields);
|
|
315
316
|
let fieldTitle=field.title.toLowerCase().replace(' ', '');
|
|
316
317
|
fieldTitle==="brands"? fieldTitle="brand":fieldTitle;
|
|
317
|
-
|
|
318
|
+
// ActivateURLOnchange=false;
|
|
318
319
|
const previousSelectedSize=selectedByField.size;
|
|
319
320
|
if (updated.length) {
|
|
320
321
|
selectedByField.set(fieldId, updated);
|
|
@@ -439,7 +440,7 @@ async function loadJobsRepeater(_$w) {
|
|
|
439
440
|
const selected = ev.target.value; // array of selected value IDs
|
|
440
441
|
let fieldTitle=field.title.toLowerCase().replace(' ', '');
|
|
441
442
|
fieldTitle==="brands"? fieldTitle="brand":fieldTitle;
|
|
442
|
-
|
|
443
|
+
// ActivateURLOnchange=false;
|
|
443
444
|
const previousSelectedSize=selectedByField.size;
|
|
444
445
|
|
|
445
446
|
if (selected && selected.length) {
|
|
@@ -664,7 +665,7 @@ function handlePaginationButtons(_$w)
|
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
function handlePageUrlParam() {
|
|
667
|
-
|
|
668
|
+
// ActivateURLOnchange=false;
|
|
668
669
|
if(pagination.currentPage==1 || pagination.currentPage==0)
|
|
669
670
|
{
|
|
670
671
|
queryParams.remove(["page"]);
|