sr-npm 1.7.721 → 1.7.723

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.721",
3
+ "version": "1.7.723",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,6 +29,7 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
29
29
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = [];
30
30
  }
31
31
  selectedByField.clear();
32
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).value='';
32
33
  await updateJobsAndNumbersAndFilters(_$w,true);
33
34
  }
34
35
  });
@@ -150,7 +151,8 @@ async function loadJobsRepeater(_$w) {
150
151
  handlePaginationButtons(_$w);
151
152
  }
152
153
 
153
- function updateTotalJobsCountText(_$w) {
154
+ function updateTotalJobsCountText(_$w,secondarySearch=false) {
155
+ secondarySearch? _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.TotalJobsCountText).text = `${secondarySearchJobs.length} Jobs`:
154
156
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.TotalJobsCountText).text = `${currentJobs.length} Jobs`;
155
157
  }
156
158
 
@@ -380,7 +382,7 @@ function secondarySearch(_$w,query) {
380
382
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = secondarySearchJobs.length.toString();
381
383
  pagination.currentPage=1;
382
384
  handlePaginationButtons(_$w,true);
383
- updateTotalJobsCountText(_$w);
385
+ updateTotalJobsCountText(_$w,true);
384
386
  }
385
387
  function bindSearchInput(_$w) {
386
388
  const primarySearchDebounced = debounce(() => {