sr-npm 1.7.1292 → 1.7.1293
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/careersMultiBoxesPage.js +15 -16
package/package.json
CHANGED
|
@@ -62,10 +62,11 @@ 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
|
+
|
|
65
66
|
const formFactor = await window.formFactor();
|
|
66
|
-
|
|
67
|
-
handleFilterButton(_$w
|
|
68
|
-
|
|
67
|
+
if(formFactor === "Mobile" || formFactor === "Tablet") {
|
|
68
|
+
handleFilterButton(_$w);
|
|
69
|
+
}
|
|
69
70
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
|
|
70
71
|
}
|
|
71
72
|
|
|
@@ -106,7 +107,7 @@ async function clearAll(_$w,urlOnChange=false) {
|
|
|
106
107
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
|
-
function handleFilterButton(_$w
|
|
110
|
+
function handleFilterButton(_$w) {
|
|
110
111
|
const searchResultsSelectors = [
|
|
111
112
|
CAREERS_PAGE_SELECTORS.RESULT_BOX,
|
|
112
113
|
CAREERS_PAGE_SELECTORS.PAGINATION_BTN,
|
|
@@ -128,18 +129,18 @@ function handleFilterButton(_$w,formFactor) {
|
|
|
128
129
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
129
130
|
_$w(selector).expand();
|
|
130
131
|
});
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
searchResultsSelectors.forEach(selector => {
|
|
133
|
+
_$w(selector).collapse();
|
|
134
|
+
});
|
|
134
135
|
});
|
|
135
136
|
|
|
136
137
|
const exitFilterBox = () => {
|
|
137
138
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
138
139
|
_$w(selector).collapse();
|
|
139
140
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
searchResultsSelectors.forEach(selector => {
|
|
142
|
+
_$w(selector).expand();
|
|
143
|
+
});
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
_$w(CAREERS_PAGE_SELECTORS.EXIT_BUTTON).onClick(()=>{
|
|
@@ -150,12 +151,10 @@ function handleFilterButton(_$w,formFactor) {
|
|
|
150
151
|
exitFilterBox();
|
|
151
152
|
});
|
|
152
153
|
|
|
153
|
-
//onmobile
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
});
|
|
158
|
-
}
|
|
154
|
+
//onmobile we should collapse the filter box and the refine search button by default
|
|
155
|
+
mobileFilterBoxSelectors.forEach(selector => {
|
|
156
|
+
_$w(selector).collapse();
|
|
157
|
+
});
|
|
159
158
|
}
|
|
160
159
|
|
|
161
160
|
|