sr-npm 1.7.757 → 1.7.758

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.757",
3
+ "version": "1.7.758",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,7 +22,7 @@ const pagination = {
22
22
  async function careersMultiBoxesPageOnReady(_$w,urlParams) {
23
23
  await loadData(_$w);
24
24
  await loadJobsRepeater(_$w);
25
- await loadPrimarySearchButtons(_$w);
25
+ await loadPrimarySearchRepeater(_$w);
26
26
  await loadFilters(_$w);
27
27
  await loadSelectedValuesRepeater(_$w);
28
28
  await bindSearchInput(_$w);
@@ -42,14 +42,18 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
42
42
  await handleUrlParams(_$w,urlParams);
43
43
  }
44
44
 
45
- async function loadPrimarySearchButtons(_$w) {
45
+ async function loadPrimarySearchRepeater(_$w) {
46
46
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOB_RESULTS_REPEATER).onItemReady(async ($item, itemData) => {
47
- $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_POSITION_BUTTON).text = itemData.title || '';
47
+ $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_POSITION_BUTTON).label = itemData.title || '';
48
48
 
49
49
  });
50
50
 
51
51
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CATEGORY_RESULTS_REPEATER).onItemReady(async ($item, itemData) => {
52
- $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).text = itemData.title || '';
52
+ console.log("itemData#$@#$%@#$@#$@#$: ", itemData);
53
+ $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).label = itemData.title || '';
54
+ $item(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_CATEGORY_BUTTON).onClick(async () => {
55
+ console.log("category button clicked: ", itemData._id);
56
+ });
53
57
  });
54
58
  }
55
59