sr-npm 1.7.1290 → 1.7.1292
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
|
@@ -62,8 +62,10 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
62
62
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CLEAR_ALL_BUTTON_ID).onClick(async () => {
|
|
63
63
|
await clearAll(_$w);
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
const formFactor = await window.formFactor();
|
|
66
|
+
// if(formFactor === "Mobile" || formFactor === "Tablet") {
|
|
67
|
+
handleFilterButton(_$w,formFactor);
|
|
68
|
+
//}
|
|
67
69
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -126,18 +128,18 @@ function handleFilterButton(_$w,formFactor) {
|
|
|
126
128
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
127
129
|
_$w(selector).expand();
|
|
128
130
|
});
|
|
129
|
-
searchResultsSelectors.forEach(selector => {
|
|
130
|
-
|
|
131
|
-
});
|
|
131
|
+
// searchResultsSelectors.forEach(selector => {
|
|
132
|
+
// _$w(selector).collapse();
|
|
133
|
+
// });
|
|
132
134
|
});
|
|
133
135
|
|
|
134
136
|
const exitFilterBox = () => {
|
|
135
137
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
136
138
|
_$w(selector).collapse();
|
|
137
139
|
});
|
|
138
|
-
searchResultsSelectors.forEach(selector => {
|
|
139
|
-
|
|
140
|
-
});
|
|
140
|
+
// searchResultsSelectors.forEach(selector => {
|
|
141
|
+
// _$w(selector).expand();
|
|
142
|
+
// });
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
_$w(CAREERS_PAGE_SELECTORS.EXIT_BUTTON).onClick(()=>{
|
|
@@ -148,7 +150,7 @@ function handleFilterButton(_$w,formFactor) {
|
|
|
148
150
|
exitFilterBox();
|
|
149
151
|
});
|
|
150
152
|
|
|
151
|
-
//onmobile we should collapse the filter box and the refine search button by default
|
|
153
|
+
//onmobile or tablet we should collapse the filter box and the refine search button by default
|
|
152
154
|
if(formFactor === "Mobile" || formFactor === "Tablet") {
|
|
153
155
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
154
156
|
_$w(selector).collapse();
|