sr-npm 1.7.1290 → 1.7.1291
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);
|
|
68
|
+
}
|
|
67
69
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -104,7 +106,7 @@ async function clearAll(_$w,urlOnChange=false) {
|
|
|
104
106
|
|
|
105
107
|
}
|
|
106
108
|
|
|
107
|
-
function handleFilterButton(_$w
|
|
109
|
+
function handleFilterButton(_$w) {
|
|
108
110
|
const searchResultsSelectors = [
|
|
109
111
|
CAREERS_PAGE_SELECTORS.RESULT_BOX,
|
|
110
112
|
CAREERS_PAGE_SELECTORS.PAGINATION_BTN,
|
|
@@ -148,12 +150,12 @@ 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
|
|
152
|
-
|
|
153
|
+
//onmobile or tablet we should collapse the filter box and the refine search button by default
|
|
154
|
+
|
|
153
155
|
mobileFilterBoxSelectors.forEach(selector => {
|
|
154
156
|
_$w(selector).collapse();
|
|
155
157
|
});
|
|
156
|
-
|
|
158
|
+
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
|