sr-npm 1.7.1278 → 1.7.1280

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.1280",
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();
@@ -304,12 +308,12 @@ async function handleParams(_$w,param,values) {
304
308
  $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.SELECTED_VALUES_REPEATER_ITEM_LABEL).text = itemData.label || '';
305
309
  // Deselect this value from both the selected map and the multibox
306
310
  $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.DESELECT_BUTTON_ID).onClick(async () => {
307
- const currentQueryParams=await location.query();
308
- if(currentQueryParams.page)
309
- {
310
- //queryParams.remove(["page"]);
311
- queryParams.add({ page: 1 });
312
- }
311
+ // const currentQueryParams=await location.query();
312
+ // if(currentQueryParams.page)
313
+ // {
314
+ // //queryParams.remove(["page"]);
315
+ // queryParams.add({ ["page"]: 1 });
316
+ // }
313
317
  const fieldId = itemData.fieldId;
314
318
  const valueId = itemData.valueId;
315
319
  dontUpdateThisCheckBox=fieldId;
@@ -434,13 +438,13 @@ async function loadJobsRepeater(_$w) {
434
438
 
435
439
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
436
440
  _$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
437
- const currentQueryParams=await location.query();
438
- if(currentQueryParams.page)
439
- {
440
- //try instead of removing to add page = 1
441
- //queryParams.remove(["page"]);
442
- queryParams.add({ page: 1 });
443
- }
441
+ // const currentQueryParams=await location.query();
442
+ // if(currentQueryParams.page)
443
+ // {
444
+ // //try instead of removing to add page = 1
445
+ // //queryParams.remove(["page"]);
446
+ // queryParams.add({ ["page"]: 1 });
447
+ // }
444
448
  dontUpdateThisCheckBox=field._id;
445
449
  const selected = ev.target.value; // array of selected value IDs
446
450
  let fieldTitle=field.title.toLowerCase().replace(' ', '');
@@ -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