sr-npm 1.7.756 → 1.7.757
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
|
@@ -349,7 +349,7 @@ async function loadJobsRepeater(_$w) {
|
|
|
349
349
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("noJobs");
|
|
350
350
|
}
|
|
351
351
|
else{
|
|
352
|
-
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("
|
|
352
|
+
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("searchResult");
|
|
353
353
|
}
|
|
354
354
|
pagination.currentPage=1;
|
|
355
355
|
handlePaginationButtons(_$w);
|
|
@@ -426,7 +426,7 @@ function primarySearch(_$w,query) {
|
|
|
426
426
|
let filteredJobs=alljobs.filter(job=>job.title.toLowerCase().includes(query));
|
|
427
427
|
if(filteredJobs.length>0) {
|
|
428
428
|
alljobs=filteredJobs;
|
|
429
|
-
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_MULTI_BOX).changeState("
|
|
429
|
+
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_MULTI_BOX).changeState("jobResults");
|
|
430
430
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOB_RESULTS_REPEATER).data = alljobs
|
|
431
431
|
}
|
|
432
432
|
else {
|
|
@@ -483,8 +483,20 @@ async function secondarySearch(_$w,query) {
|
|
|
483
483
|
categoryValues.push({title:value.title+` (${value.totalJobs})` ,_id:value._id});
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
+
console.log("categoryValues: ", categoryValues);
|
|
486
487
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CATEGORY_RESULTS_REPEATER).data = categoryValues;
|
|
487
|
-
|
|
488
|
+
// let categroyFieldId;
|
|
489
|
+
// for(const field of allfields) {
|
|
490
|
+
// if(field.title==="Category") {
|
|
491
|
+
// categroyFieldId=field._id;
|
|
492
|
+
// break;
|
|
493
|
+
// }
|
|
494
|
+
// }
|
|
495
|
+
// let categorycounts=countsByFieldId.get(categroyFieldId);
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
//_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOB_RESULTS_REPEATER).data = alljobs
|
|
499
|
+
//@@@@@@@@@@@@@@@@@
|
|
488
500
|
});
|
|
489
501
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).onInput(secondarySearchDebounced);
|
|
490
502
|
|