sr-npm 1.7.1191 → 1.7.1193

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.1191",
3
+ "version": "1.7.1193",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -56,14 +56,15 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
56
56
  loadSelectedValuesRepeater(_$w);
57
57
  bindSearchInput(_$w);
58
58
  loadPaginationButtons(_$w);
59
- if (await window.formFactor() === "Mobile") {
60
- handleFilterInMobile(_$w);
61
- }
59
+
62
60
  await handleUrlParams(_$w, urlParams);
63
61
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.CLEAR_ALL_BUTTON_ID).onClick(async () => {
64
62
  await clearAll(_$w);
65
63
  });
66
64
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.RESULTS_MULTI_STATE_BOX).changeState("results");
65
+ if (await window.formFactor() === "Mobile") {
66
+ handleFilterInMobile(_$w);
67
+ }
67
68
  }
68
69
 
69
70
  async function handleBackAndForth(_$w){
@@ -137,6 +138,16 @@ function handleFilterInMobile(_$w) {
137
138
  _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).onClick(()=>{
138
139
  exitFilterBox();
139
140
  });
141
+
142
+ console.log("Filter box collapsed: ", _$w(CAREERS_PAGE_SELECTORS.FILTER_BOX).collapsed);
143
+ if(_$w(CAREERS_PAGE_SELECTORS.FILTER_BOX).collapsed){
144
+ console.log("Filter box is collapsed, collapsing refine search button");
145
+ _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapse();
146
+ }
147
+ else{
148
+ console.log("Filter box is not collapsed, expanding refine search button");
149
+ _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).expand();
150
+ }
140
151
  }
141
152
 
142
153