sr-npm 1.7.717 → 1.7.718

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.717",
3
+ "version": "1.7.718",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -358,15 +358,21 @@ function secondarySearch(_$w,query) {
358
358
  console.log("secondary search query: ", query);
359
359
  if(query.length===0) {
360
360
  if(currentJobsBeforeSecondarySearch.length>0) {
361
+
361
362
  currentJobs=currentJobsBeforeSecondarySearch
362
363
  }
363
364
  }
364
365
  else
365
366
  {
366
367
  currentJobsBeforeSecondarySearch=currentJobs;
368
+ console.log("current jobs before secondary search length: ", currentJobsBeforeSecondarySearch.length);
369
+ console.log("current jobs before secondary search: ", currentJobsBeforeSecondarySearch);
367
370
  currentJobs=currentJobs.filter(job=>job.title.toLowerCase().includes(query));
371
+ console.log("current jobs length: ", currentJobs.length);
372
+ console.log("current jobs: ", currentJobs);
368
373
  }
369
374
  const jobsFirstPage=currentJobs.slice(0,pagination.pageSize);
375
+ console.log("jobs first page: ", jobsFirstPage);
370
376
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = jobsFirstPage;
371
377
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = jobsFirstPage.length.toString();
372
378
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = currentJobs.length.toString();