sr-npm 1.7.1277 → 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.1277",
3
+ "version": "1.7.1279",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -77,6 +77,7 @@ 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;
80
81
  }
81
82
  else{
82
83
  ActivateURLOnchange=true;
@@ -311,7 +312,7 @@ async function handleParams(_$w,param,values) {
311
312
  if(currentQueryParams.page)
312
313
  {
313
314
  //queryParams.remove(["page"]);
314
- queryParams.add({ page: 1 });
315
+ queryParams.add({ ["page"]: 1 });
315
316
  }
316
317
  const fieldId = itemData.fieldId;
317
318
  const valueId = itemData.valueId;
@@ -442,7 +443,7 @@ async function loadJobsRepeater(_$w) {
442
443
  {
443
444
  //try instead of removing to add page = 1
444
445
  //queryParams.remove(["page"]);
445
- queryParams.add({ page: 1 });
446
+ queryParams.add({ ["page"]: 1 });
446
447
  }
447
448
  dontUpdateThisCheckBox=field._id;
448
449
  const selected = ev.target.value; // array of selected value IDs
@@ -681,7 +682,7 @@ function handlePageUrlParam() {
681
682
  queryParams.remove(["page"]);
682
683
  }
683
684
  else{
684
- queryParams.add({ page: pagination.currentPage });
685
+ queryParams.add({ ["page"]: pagination.currentPage });
685
686
  }
686
687
  }
687
688
  async function refreshFacetCounts(_$w,clearAll=false) {