sr-npm 1.7.946 → 1.7.947
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 +1 -1
- package/pages/homePage.js +32 -14
package/package.json
CHANGED
package/pages/homePage.js
CHANGED
|
@@ -64,21 +64,39 @@ async function homePageOnReady(_$w,thisObject=null) {
|
|
|
64
64
|
function bindTeamRepeater(_$w) {
|
|
65
65
|
_$w('#teamRepeater').onItemReady(($item, itemData) => {
|
|
66
66
|
$item('#teamButton').label = `View ${itemData.count} Open Positions`;
|
|
67
|
-
|
|
68
|
-
if (itemData.customField) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
else{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
67
|
+
// const department = encodeURIComponent(itemData.title);
|
|
68
|
+
// if (itemData.customField) {
|
|
69
|
+
// [$item('#teamButton'), $item('#teamButton2')].forEach(btn => {
|
|
70
|
+
// btn.onClick(() => {
|
|
71
|
+
// location.to(`/search?category=${department}`);
|
|
72
|
+
// });
|
|
73
|
+
// });
|
|
74
|
+
|
|
75
|
+
// }
|
|
76
|
+
// else{
|
|
77
|
+
// $item('#teamButton').onClick(()=>{
|
|
78
|
+
// location.to(`/positions?department=${department}`);
|
|
79
|
+
// });
|
|
80
|
+
// }
|
|
81
81
|
});
|
|
82
|
+
|
|
83
|
+
_$w("#teamRepeaterItem").onClick((event) => {
|
|
84
|
+
|
|
85
|
+
const $item = _$w.at(event.context);
|
|
86
|
+
|
|
87
|
+
if(_$w("#categoriesDataset")) {
|
|
88
|
+
const clickedItemData = $item("#categoriesDataset").getCurrentItem();
|
|
89
|
+
const department = encodeURIComponent(clickedItemData.title);
|
|
90
|
+
location.to(`/search?category=${department}`);
|
|
91
|
+
}
|
|
92
|
+
else
|
|
93
|
+
{
|
|
94
|
+
console.log("check SR templates and do this ")
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
|
|
82
100
|
}
|
|
83
101
|
|
|
84
102
|
function bindViewAllButton(_$w) {
|