sr-npm 1.7.1289 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.1289",
3
+ "version": "1.7.1291",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -62,10 +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
- //const formFactor = await window.formFactor();
66
- //if (formFactor === "Mobile" || formFactor === "Tablet") {
67
- handleFilterInMobile(_$w);
68
- // }
65
+ const formFactor = await window.formFactor();
66
+ if(formFactor === "Mobile" || formFactor === "Tablet") {
67
+ handleFilterButton(_$w);
68
+ }
69
69
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
70
70
  }
71
71
 
@@ -106,7 +106,7 @@ async function clearAll(_$w,urlOnChange=false) {
106
106
 
107
107
  }
108
108
 
109
- function handleFilterInMobile(_$w) {
109
+ function handleFilterButton(_$w) {
110
110
  const searchResultsSelectors = [
111
111
  CAREERS_PAGE_SELECTORS.RESULT_BOX,
112
112
  CAREERS_PAGE_SELECTORS.PAGINATION_BTN,
@@ -150,10 +150,12 @@ function handleFilterInMobile(_$w) {
150
150
  exitFilterBox();
151
151
  });
152
152
 
153
- //onmobile we should collapse the filter box and the refine search button by default
154
- mobileFilterBoxSelectors.forEach(selector => {
155
- _$w(selector).collapse();
156
- });
153
+ //onmobile or tablet we should collapse the filter box and the refine search button by default
154
+
155
+ mobileFilterBoxSelectors.forEach(selector => {
156
+ _$w(selector).collapse();
157
+ });
158
+
157
159
  }
158
160
 
159
161