sr-npm 1.7.1272 → 1.7.1274
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 +1 -1
- package/pages/careersMultiBoxesPage.js +28 -11
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ let keywordAllJobs; // all jobs that are displayed in the jobs repeater when the
|
|
|
40
40
|
let ActivateURLOnchange=true; // whether to activate the url onchange
|
|
41
41
|
let considerAllJobs=false; // whether to consider all jobs or not
|
|
42
42
|
let urlOnchangeIsActive=false
|
|
43
|
+
let pageIsRemoved=false
|
|
43
44
|
const pagination = {
|
|
44
45
|
pageSize: 10,
|
|
45
46
|
currentPage: 1,
|
|
@@ -72,19 +73,35 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
async function handleBackAndForth(_$w){
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
|
|
77
|
+
const newQueryParams=await location.query();
|
|
78
|
+
await handleUrlParams(_$w,newQueryParams,true);
|
|
79
|
+
// if(ActivateURLOnchange) {
|
|
80
|
+
// const newQueryParams=await location.query();
|
|
81
|
+
// console.log("newQueryParams: ", newQueryParams);
|
|
82
|
+
// if(newQueryParams.page)
|
|
83
|
+
// {
|
|
84
|
+
// pageIsRemoved=false;
|
|
85
|
+
// }
|
|
86
|
+
// else
|
|
87
|
+
// {
|
|
88
|
+
// pageIsRemoved=true;
|
|
89
|
+
// }
|
|
90
|
+
// ActivateURLOnchange=false;
|
|
91
|
+
// await clearAll(_$w,true);
|
|
92
|
+
// await handleUrlParams(_$w,newQueryParams,true);
|
|
93
|
+
// ActivateURLOnchange=true;
|
|
94
|
+
// if(pageIsRemoved)
|
|
95
|
+
// {
|
|
96
|
+
// handlePaginationButtons(_$w);
|
|
97
|
+
// pageIsRemoved=false;
|
|
98
|
+
// }
|
|
82
99
|
|
|
83
100
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
// }
|
|
102
|
+
// else{
|
|
103
|
+
// ActivateURLOnchange=true;
|
|
104
|
+
// }
|
|
88
105
|
}
|
|
89
106
|
|
|
90
107
|
async function clearAll(_$w,urlOnChange=false) {
|