sr-npm 1.7.884 → 1.7.887
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/careersPage.js +0 -4
- package/pages/homePage.js +3 -6
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -110,8 +110,6 @@ async function handleUrlParams(_$w) {
|
|
|
110
110
|
if (queryBrandVar && _$w('#dropdownBrand').isVisible) { //if it is not visible, ignore it
|
|
111
111
|
await handleBrandParam(_$w,queryBrandVar);
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
if (siteconfig.onlyBrandKeywordUrlParams==="false") { // it is something else that is not TWG
|
|
115
113
|
if (queryPageVar) {
|
|
116
114
|
await handlePageParam(_$w);
|
|
117
115
|
}
|
|
@@ -124,8 +122,6 @@ async function handleUrlParams(_$w) {
|
|
|
124
122
|
if (queryJobTypeVar) {
|
|
125
123
|
await handleJobTypeParam(_$w,queryJobTypeVar);
|
|
126
124
|
}
|
|
127
|
-
|
|
128
|
-
}
|
|
129
125
|
await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
|
|
130
126
|
}
|
|
131
127
|
|
package/pages/homePage.js
CHANGED
|
@@ -67,7 +67,6 @@ async function homePageOnReady(_$w,thisObject=null) {
|
|
|
67
67
|
function bindTeamRepeater(_$w) {
|
|
68
68
|
_$w('#teamRepeater').onItemReady(($item, itemData) => {
|
|
69
69
|
$item('#teamButton').label = `View ${itemData.count} Open Positions`;
|
|
70
|
-
console.log("itemData: ", itemData);
|
|
71
70
|
const department = encodeURIComponent(itemData.title);
|
|
72
71
|
if (itemData.customField) {
|
|
73
72
|
[$item('#teamButton'), $item('#teamButton2')].forEach(btn => {
|
|
@@ -86,19 +85,17 @@ function bindTeamRepeater(_$w) {
|
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
function bindViewAllButton(_$w) {
|
|
89
|
-
|
|
88
|
+
|
|
90
89
|
_$w('#viewAllCategoriesButton').onClick(()=>{
|
|
91
90
|
if(!loadedCategories) {
|
|
92
91
|
loadedCategories=true;
|
|
93
|
-
_$w('#viewAllCategoriesButton').label = "View
|
|
92
|
+
_$w('#viewAllCategoriesButton').label = "View Less";
|
|
94
93
|
_$w("#categoriesDataset").loadMore();
|
|
95
|
-
console.log("categories loaded");
|
|
96
94
|
}
|
|
97
95
|
else{
|
|
98
96
|
loadedCategories=false;
|
|
99
|
-
_$w('#viewAllCategoriesButton').label = "View
|
|
97
|
+
_$w('#viewAllCategoriesButton').label = "View All";
|
|
100
98
|
_$w("#categoriesDataset").loadPage(1);
|
|
101
|
-
console.log("categories reseted");
|
|
102
99
|
}
|
|
103
100
|
});
|
|
104
101
|
}
|