sr-npm 1.7.1124 → 1.7.1126

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.1124",
3
+ "version": "1.7.1126",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -76,7 +76,9 @@ async function handleBackAndForth(_$w){
76
76
  async function clearAll(_$w,urlOnChange=false) {
77
77
  console.log("inside clearAll activateURLOnchange: ",ActivateURLOnchange);
78
78
  console.log("inside clearAll changing to false: ",ActivateURLOnchange);
79
- if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value) {
79
+ console.log("inside clearAll urlOnChange: ",urlOnChange);
80
+ console.log("inside clearAll queryParams.page: ",queryParams.page);
81
+ if(selectedByField.size>0 || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value || _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value || queryParams.page) {
80
82
 
81
83
  for(const field of allfields) {
82
84
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
@@ -91,7 +93,7 @@ async function clearAll(_$w,urlOnChange=false) {
91
93
  console.log("inside clearAll removing url params");
92
94
  ActivateURLOnchange=false;
93
95
  queryParams.remove(possibleUrlParams.concat(["keyword", "page"]));
94
-
96
+
95
97
  await updateJobsAndNumbersAndFilters(_$w,true);
96
98
 
97
99
  // ActivateURLOnchange=true;
@@ -168,6 +170,7 @@ async function handleUrlParams(_$w,urlParams,handleBackAndForth=false) {
168
170
  }
169
171
 
170
172
  if(urlParams.page) {
173
+ console.log("inside handleUrlParams page url param before pagination, ActivateURLOnchange: ",ActivateURLOnchange);
171
174
  if(Number.isNaN(Number(urlParams.page)) || Number(urlParams.page)<=1 || Number(urlParams.page)>Math.ceil(currentJobs.length/pagination.pageSize)) {
172
175
  console.warn("page number is invalid, removing page from url");
173
176
  queryParams.remove(["page"]);
@@ -563,6 +566,7 @@ function handlePaginationButtons(_$w)
563
566
 
564
567
  function handlePageUrlParam() {
565
568
  console.log("inside handlePageUrlParam ActivateURLOnchange ",ActivateURLOnchange);
569
+ ActivateURLOnchange=false;
566
570
  if(pagination.currentPage==1)
567
571
  {
568
572