sr-npm 1.7.1040 → 1.7.1041

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.1040",
3
+ "version": "1.7.1041",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,14 +46,14 @@ async function handleBackAndForth(_$w){
46
46
  const newQueryParams=await location.query();
47
47
  console.log("newQueryParams: ", newQueryParams);
48
48
  //selectedByField.clear();
49
- await clearAll(_$w);
49
+ await clearAll(_$w,true);
50
50
 
51
51
 
52
52
  await handleUrlParams(_$w,newQueryParams);
53
53
 
54
54
  }
55
55
 
56
- async function clearAll(_$w) {
56
+ async function clearAll(_$w,urlOnChange=false) {
57
57
  if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value) {
58
58
  for(const field of allfields) {
59
59
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
@@ -64,7 +64,9 @@ async function clearAll(_$w) {
64
64
  secondarySearchIsFilled=false;
65
65
  currentJobs=alljobs;
66
66
  keywordAllJobs=undefined;
67
- queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
67
+ if(!urlOnChange) {
68
+ queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
69
+ }
68
70
  await updateJobsAndNumbersAndFilters(_$w,true);
69
71
  }
70
72
  }