sr-npm 1.7.1127 → 1.7.1129

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.1127",
3
+ "version": "1.7.1129",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -57,11 +57,11 @@ async function handleBackAndForth(_$w){
57
57
  if(ActivateURLOnchange) {
58
58
  const newQueryParams=await location.query();
59
59
  console.log("newQueryParams: ", newQueryParams);
60
+
60
61
 
61
62
  ActivateURLOnchange=false;
62
63
  console.log("inside handleBackAndForth ActivateURLOnchange before all changes: ",ActivateURLOnchange);
63
64
  await clearAll(_$w,true);
64
- // selectedByField.clear();
65
65
  await handleUrlParams(_$w,newQueryParams,true);
66
66
  ActivateURLOnchange=true;
67
67
  console.log("inside handleBackAndForth ActivateURLOnchange after all changes: ",ActivateURLOnchange);
@@ -74,12 +74,7 @@ async function handleBackAndForth(_$w){
74
74
  }
75
75
 
76
76
  async function clearAll(_$w,urlOnChange=false) {
77
- console.log("inside clearAll activateURLOnchange: ",ActivateURLOnchange);
78
- console.log("inside clearAll changing to false: ",ActivateURLOnchange);
79
- console.log("inside clearAll urlOnChange: ",urlOnChange);
80
- console.log("inside clearAll queryParams.page: ",queryParams.page);
81
- console.log("current page: ",pagination.currentPage);
82
- if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value || pagination.currentPage>1) {
77
+ if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value) {
83
78
 
84
79
  for(const field of allfields) {
85
80
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
@@ -96,8 +91,6 @@ async function clearAll(_$w,urlOnChange=false) {
96
91
  queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
97
92
 
98
93
  await updateJobsAndNumbersAndFilters(_$w,true);
99
-
100
- // ActivateURLOnchange=true;
101
94
  }
102
95
  console.log("before updateJobsAndNumbersAndFilters");
103
96