sr-npm 1.7.845 → 1.7.847
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/backend/data.js +4 -2
- package/package.json +1 -1
- package/pages/careersMultiBoxesPage.js +10 -5
package/backend/data.js
CHANGED
|
@@ -143,7 +143,8 @@ async function saveJobsDataToCMS() {
|
|
|
143
143
|
getCustomFieldsAndValuesFromPosition(position,customFieldsLabels,customFieldsValues);
|
|
144
144
|
getEmploymentType(position,customFieldsValues);
|
|
145
145
|
getLocation(position,basicJob);
|
|
146
|
-
if(templateType===TEMPLATE_TYPE.
|
|
146
|
+
if(templateType===TEMPLATE_TYPE.EXTERNAL){
|
|
147
|
+
console.log("change me lkater to internsal")
|
|
147
148
|
getVisibility(position,customFieldsValues);
|
|
148
149
|
}
|
|
149
150
|
|
|
@@ -198,8 +199,9 @@ async function insertJobsReference(valueId) {
|
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
async function populateCustomFieldsCollection(customFields) {
|
|
201
|
-
fieldstoinsert=[]
|
|
202
|
+
let fieldstoinsert=[]
|
|
202
203
|
customFields["employmentType"] = "Employment Type";
|
|
204
|
+
customFields["visibility"] = "Visibility";
|
|
203
205
|
for(const ID of Object.keys(customFields)){
|
|
204
206
|
fieldstoinsert.push({
|
|
205
207
|
title: customFields[ID],
|
package/package.json
CHANGED
|
@@ -238,7 +238,10 @@ async function loadJobsRepeater(_$w) {
|
|
|
238
238
|
// 2) Load all values once and group them by referenced field
|
|
239
239
|
let valuesByFieldId = groupValuesByField(allvaluesobjects, CUSTOM_VALUES_COLLECTION_FIELDS.CUSTOM_FIELD);
|
|
240
240
|
valuesByFieldId.set("Location",cities)
|
|
241
|
-
|
|
241
|
+
console.log("valuesByFieldId: ", valuesByFieldId);
|
|
242
|
+
console.log("allvaluesobjects: ", allvaluesobjects);
|
|
243
|
+
console.log("allfields: ", allfields);
|
|
244
|
+
console.log("optionsByFieldId: ", optionsByFieldId);
|
|
242
245
|
// Build CheckboxGroup options for this field
|
|
243
246
|
|
|
244
247
|
const counter={}
|
|
@@ -266,6 +269,7 @@ async function loadJobsRepeater(_$w) {
|
|
|
266
269
|
countsByFieldId.set(key, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
|
|
267
270
|
updateOptionsUI(_$w,field.title, field._id, ''); // no search query
|
|
268
271
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
|
|
272
|
+
console.log("i am here 1 , field.title: ", field.title);
|
|
269
273
|
_$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
|
|
270
274
|
console.log(`#${FiltersIds[field.title]}CheckBox.selectedIndices: `, _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
|
|
271
275
|
dontUpdateThisCheckBox=field._id;
|
|
@@ -278,18 +282,19 @@ async function loadJobsRepeater(_$w) {
|
|
|
278
282
|
await updateJobsAndNumbersAndFilters(_$w);
|
|
279
283
|
|
|
280
284
|
});
|
|
281
|
-
|
|
285
|
+
console.log("i am here 2 , field.title: ", field.title);
|
|
282
286
|
const runFilter = debounce(() => {
|
|
283
287
|
const query = (_$w(`#${FiltersIds[field.title]}input`).value || '').toLowerCase().trim();
|
|
284
288
|
updateOptionsUI(_$w, field.title, field._id, query);
|
|
285
289
|
}, 150);
|
|
286
|
-
|
|
290
|
+
console.log("i am here 3 , field.title: ", field.title);
|
|
287
291
|
_$w(`#${FiltersIds[field.title]}input`).onInput(runFilter);
|
|
288
|
-
|
|
292
|
+
console.log("i am here 4 , field.title: ", field.title);
|
|
289
293
|
|
|
290
294
|
}
|
|
291
|
-
|
|
295
|
+
console.log("i am here 5 ");
|
|
292
296
|
await refreshFacetCounts(_$w);
|
|
297
|
+
console.log("i am here 6 ");
|
|
293
298
|
|
|
294
299
|
} catch (err) {
|
|
295
300
|
console.error('Failed to load filters:', err);
|