sr-npm 1.7.1100 → 1.7.1102

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1100",
3
+ "version": "1.7.1102",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -74,6 +74,8 @@ async function handleBackAndForth(_$w){
74
74
  }
75
75
 
76
76
  async function clearAll(_$w,urlOnChange=false) {
77
+ console.log("inside clearAll activateURLOnchange: ",ActivateURLOnchange);
78
+
77
79
  if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value) {
78
80
  for(const field of allfields) {
79
81
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
@@ -86,9 +88,8 @@ async function clearAll(_$w,urlOnChange=false) {
86
88
  keywordAllJobs=undefined;
87
89
  if(!urlOnChange) {
88
90
  queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
89
- await updateJobsAndNumbersAndFilters(_$w,true);
90
91
  }
91
-
92
+ await updateJobsAndNumbersAndFilters(_$w,true);
92
93
  }
93
94
  }
94
95
 
@@ -415,7 +416,7 @@ function getValueFromValueId(valueIds,value) {
415
416
  }
416
417
 
417
418
  async function updateJobsAndNumbersAndFilters(_$w,clearAll=false) {
418
- await applyJobFilters(_$w); // re-query jobs
419
+ await applyJobFilters(_$w,clearAll); // re-query jobs
419
420
  await refreshFacetCounts(_$w,clearAll); // recompute and update counts in all lists
420
421
  await updateSelectedValuesRepeater(_$w);
421
422
  updateTotalJobsCountText(_$w);
@@ -465,7 +466,8 @@ function getValueFromValueId(valueIds,value) {
465
466
  }
466
467
  }
467
468
 
468
- async function applyJobFilters(_$w) {
469
+ async function applyJobFilters(_$w,clearAll=false) {
470
+ if(!clearAll) {
469
471
  let tempFilteredJobs=[];
470
472
  let finalFilteredJobs=[];
471
473
  secondarySearchIsFilled? finalFilteredJobs=allsecondarySearchJobs:finalFilteredJobs=alljobs;
@@ -519,6 +521,7 @@ function getValueFromValueId(valueIds,value) {
519
521
  pagination.currentPage=1;
520
522
  handlePaginationButtons(_$w);
521
523
  }
524
+ }
522
525
 
523
526
  function handlePaginationButtons(_$w)
524
527
  {