sr-npm 1.7.1099 → 1.7.1101

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.1099",
3
+ "version": "1.7.1101",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -60,8 +60,8 @@ async function handleBackAndForth(_$w){
60
60
 
61
61
  ActivateURLOnchange=false;
62
62
  console.log("inside handleBackAndForth ActivateURLOnchange before all changes: ",ActivateURLOnchange);
63
- // await clearAll(_$w,true);
64
- selectedByField.clear();
63
+ await clearAll(_$w,true);
64
+ // selectedByField.clear();
65
65
  await handleUrlParams(_$w,newQueryParams);
66
66
  ActivateURLOnchange=true;
67
67
  console.log("inside handleBackAndForth ActivateURLOnchange after all changes: ",ActivateURLOnchange);
@@ -414,7 +414,7 @@ function getValueFromValueId(valueIds,value) {
414
414
  }
415
415
 
416
416
  async function updateJobsAndNumbersAndFilters(_$w,clearAll=false) {
417
- await applyJobFilters(_$w); // re-query jobs
417
+ await applyJobFilters(_$w,clearAll); // re-query jobs
418
418
  await refreshFacetCounts(_$w,clearAll); // recompute and update counts in all lists
419
419
  await updateSelectedValuesRepeater(_$w);
420
420
  updateTotalJobsCountText(_$w);
@@ -464,7 +464,8 @@ function getValueFromValueId(valueIds,value) {
464
464
  }
465
465
  }
466
466
 
467
- async function applyJobFilters(_$w) {
467
+ async function applyJobFilters(_$w,clearAll=false) {
468
+ if(!clearAll) {
468
469
  let tempFilteredJobs=[];
469
470
  let finalFilteredJobs=[];
470
471
  secondarySearchIsFilled? finalFilteredJobs=allsecondarySearchJobs:finalFilteredJobs=alljobs;
@@ -518,6 +519,7 @@ function getValueFromValueId(valueIds,value) {
518
519
  pagination.currentPage=1;
519
520
  handlePaginationButtons(_$w);
520
521
  }
522
+ }
521
523
 
522
524
  function handlePaginationButtons(_$w)
523
525
  {