sr-npm 1.7.1022 → 1.7.1024
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
|
@@ -58,7 +58,10 @@ async function clearAll(_$w) {
|
|
|
58
58
|
|
|
59
59
|
async function handleUrlParams(_$w,urlParams) {
|
|
60
60
|
try {
|
|
61
|
+
console.log("currentJobs: ",currentJobs);
|
|
62
|
+
console.log("currentJobs.length: ",currentJobs.length);
|
|
61
63
|
let applyFiltering=false;
|
|
64
|
+
let currentApplyFilterFlag=false;
|
|
62
65
|
|
|
63
66
|
//apply this first to determine all jobs
|
|
64
67
|
if(urlParams.keyword) {
|
|
@@ -77,13 +80,19 @@ async function handleUrlParams(_$w,urlParams) {
|
|
|
77
80
|
if(urlParams[url])
|
|
78
81
|
{
|
|
79
82
|
console.log("urlParams[url]: ",urlParams[url])
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
currentApplyFilterFlag=await handleParams(_$w,url,urlParams[url])
|
|
84
|
+
if(currentApplyFilterFlag) {
|
|
85
|
+
applyFiltering=true;
|
|
86
|
+
}
|
|
82
87
|
}
|
|
88
|
+
currentApplyFilterFlag=false;
|
|
83
89
|
}
|
|
84
90
|
if(applyFiltering || keywordAllJobs) {
|
|
85
91
|
await updateJobsAndNumbersAndFilters(_$w);
|
|
86
92
|
}
|
|
93
|
+
console.log("currentJobs: ",currentJobs);
|
|
94
|
+
console.log("currentJobs.length: ",currentJobs.length);
|
|
95
|
+
console.log("Math.ceil(currentJobs.length/pagination.pageSize): ",Math.ceil(currentJobs.length/pagination.pageSize));
|
|
87
96
|
if(urlParams.page) {
|
|
88
97
|
if(Number.isNaN(Number(urlParams.page)) || Number(urlParams.page)<=1 || Number(urlParams.page)>Math.ceil(currentJobs.length/pagination.pageSize)) {
|
|
89
98
|
console.warn("page number is invalid, removing page from url");
|
|
@@ -140,8 +149,6 @@ async function handleParams(_$w,param,values) {
|
|
|
140
149
|
}
|
|
141
150
|
}
|
|
142
151
|
|
|
143
|
-
console.log("existing after for loop: ",existing);
|
|
144
|
-
console.log("selectedIndices after for loop: ",selectedIndices);
|
|
145
152
|
selectedByField.set(field._id, existing);
|
|
146
153
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices=selectedIndices;
|
|
147
154
|
return applyFiltering;
|
|
@@ -177,7 +184,6 @@ async function handleParams(_$w,param,values) {
|
|
|
177
184
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.SELECTED_VALUES_REPEATER_ITEM_LABEL).text = itemData.label || '';
|
|
178
185
|
// Deselect this value from both the selected map and the multibox
|
|
179
186
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.DESELECT_BUTTON_ID).onClick(async () => {
|
|
180
|
-
console.log("deselect button clicked , itemData: ",itemData);
|
|
181
187
|
const fieldId = itemData.fieldId;
|
|
182
188
|
const valueId = itemData.valueId;
|
|
183
189
|
dontUpdateThisCheckBox=fieldId;
|