sr-npm 1.7.1293 → 1.7.1295
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 +33 -11
package/package.json
CHANGED
|
@@ -71,18 +71,25 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
async function handleBackAndForth(_$w){
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
ActivateURLOnchange=true;
|
|
74
|
+
if(ActivateURLOnchange) {
|
|
75
|
+
await clearAll(_$w);
|
|
76
|
+
}
|
|
77
|
+
else{
|
|
78
|
+
ActivateURLOnchange=true;
|
|
79
|
+
}
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
// if(ActivateURLOnchange) {
|
|
82
|
+
// const newQueryParams=await location.query();
|
|
83
|
+
// console.log("newQueryParams: ", newQueryParams);
|
|
84
|
+
// ActivateURLOnchange=false;
|
|
85
|
+
// await clearAll(_$w,true);
|
|
86
|
+
// await handleUrlParams(_$w,newQueryParams,true);
|
|
87
|
+
// ActivateURLOnchange=true;
|
|
88
|
+
|
|
89
|
+
// }
|
|
90
|
+
// else{
|
|
91
|
+
// ActivateURLOnchange=true;
|
|
92
|
+
// }
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
async function clearAll(_$w,urlOnChange=false) {
|
|
@@ -402,6 +409,21 @@ async function loadJobsRepeater(_$w) {
|
|
|
402
409
|
|
|
403
410
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
|
|
404
411
|
_$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
|
|
412
|
+
|
|
413
|
+
window.getBoundingRect().then((windowSizeInfo) => {
|
|
414
|
+
let windowHeight = windowSizeInfo.window.height; // 565
|
|
415
|
+
let windowWidth = windowSizeInfo.window.width; // 1269
|
|
416
|
+
let documentHeight = windowSizeInfo.document.height; // 780
|
|
417
|
+
let documentWidth = windowSizeInfo.document.width; // 1269
|
|
418
|
+
let scrollX = windowSizeInfo.scroll.x; // 0
|
|
419
|
+
let scrollY = windowSizeInfo.scroll.y; // 120
|
|
420
|
+
console.log("windowHeight: ", windowHeight);
|
|
421
|
+
console.log("windowWidth: ", windowWidth);
|
|
422
|
+
console.log("documentHeight: ", documentHeight);
|
|
423
|
+
console.log("documentWidth: ", documentWidth);
|
|
424
|
+
console.log("scrollX: ", scrollX);
|
|
425
|
+
console.log("scrollY: ", scrollY);
|
|
426
|
+
});
|
|
405
427
|
dontUpdateThisCheckBox=field._id;
|
|
406
428
|
const selected = ev.target.value; // array of selected value IDs
|
|
407
429
|
let fieldTitle=field.title.toLowerCase().replace(' ', '');
|