sr-npm 1.7.1278 → 1.7.1279

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.1278",
3
+ "version": "1.7.1279",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -77,6 +77,10 @@ async function handleBackAndForth(_$w){
77
77
  const newQueryParams=await location.query();
78
78
  await clearAll(_$w,true);
79
79
  await handleUrlParams(_$w,newQueryParams,true);
80
+ ActivateURLOnchange=true;
81
+ }
82
+ else{
83
+ ActivateURLOnchange=true;
80
84
  }
81
85
  // if(ActivateURLOnchange) {
82
86
  // const newQueryParams=await location.query();
@@ -308,7 +312,7 @@ async function handleParams(_$w,param,values) {
308
312
  if(currentQueryParams.page)
309
313
  {
310
314
  //queryParams.remove(["page"]);
311
- queryParams.add({ page: 1 });
315
+ queryParams.add({ ["page"]: 1 });
312
316
  }
313
317
  const fieldId = itemData.fieldId;
314
318
  const valueId = itemData.valueId;
@@ -439,7 +443,7 @@ async function loadJobsRepeater(_$w) {
439
443
  {
440
444
  //try instead of removing to add page = 1
441
445
  //queryParams.remove(["page"]);
442
- queryParams.add({ page: 1 });
446
+ queryParams.add({ ["page"]: 1 });
443
447
  }
444
448
  dontUpdateThisCheckBox=field._id;
445
449
  const selected = ev.target.value; // array of selected value IDs
@@ -678,9 +682,8 @@ function handlePageUrlParam() {
678
682
  queryParams.remove(["page"]);
679
683
  }
680
684
  else{
681
- queryParams.add({ page: pagination.currentPage });
685
+ queryParams.add({ ["page"]: pagination.currentPage });
682
686
  }
683
- ActivateURLOnchange=true;
684
687
  }
685
688
  async function refreshFacetCounts(_$w,clearAll=false) {
686
689