sr-npm 1.7.678 → 1.7.680
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
|
@@ -110,7 +110,6 @@ async function loadJobs(_$w) {
|
|
|
110
110
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER_ITEM_LOCATION).text=itemData.location.fullLocation
|
|
111
111
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER_ITEM_EMPLOYMENT_TYPE).text=itemData.employmentType
|
|
112
112
|
});
|
|
113
|
-
console.log("alljobs: ",alljobs)
|
|
114
113
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = alljobs;
|
|
115
114
|
updateTotalJobsCountText(_$w);
|
|
116
115
|
}
|
|
@@ -141,6 +140,7 @@ async function loadJobs(_$w) {
|
|
|
141
140
|
for(const city of cities) {
|
|
142
141
|
counter[city.city]=city.count
|
|
143
142
|
}
|
|
143
|
+
|
|
144
144
|
for(const [key, value] of valuesByFieldId) {
|
|
145
145
|
for(const field of fields) {
|
|
146
146
|
if(field._id===key) {
|
|
@@ -166,6 +166,7 @@ async function loadJobs(_$w) {
|
|
|
166
166
|
//_$w("#CategoryCheckBox").options = valuesByFieldId.get(elemenet);
|
|
167
167
|
_$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
|
|
168
168
|
dontUpdateThisCheckBox=field._id;
|
|
169
|
+
console.log("dontUpdateThisCheckBox ",dontUpdateThisCheckBox)
|
|
169
170
|
const selected = ev.target.value; // array of selected value IDs
|
|
170
171
|
console.log("selected: ",selected)
|
|
171
172
|
if (selected && selected.length) {
|
|
@@ -304,11 +305,15 @@ async function loadJobs(_$w) {
|
|
|
304
305
|
};
|
|
305
306
|
|
|
306
307
|
function updateOptionsUI(_$w,fieldTitle, fieldId, searchQuery) {
|
|
308
|
+
console.log("fieldTitle now inisde updateOptionsUI: ",fieldTitle)
|
|
307
309
|
let base = optionsByFieldId.get(fieldId) || [];
|
|
308
310
|
console.log("base: ",base)
|
|
309
311
|
const countsMap = countsByFieldId.get(fieldId) || new Map();
|
|
312
|
+
console.log("before if statement dontUpdateThisCheckBox: ",dontUpdateThisCheckBox)
|
|
313
|
+
console.log("fieldId: ",fieldId)
|
|
310
314
|
if(dontUpdateThisCheckBox===fieldId)
|
|
311
315
|
{
|
|
316
|
+
console.log("dontUpdateThisCheckBox is not null so returning")
|
|
312
317
|
dontUpdateThisCheckBox=null;
|
|
313
318
|
return;
|
|
314
319
|
}
|