sr-npm 1.7.1312 → 1.7.1313

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.1312",
3
+ "version": "1.7.1313",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,6 +40,7 @@ let secondarySearchIsFilled=false // whether the secondary search is filled with
40
40
  let keywordAllJobs; // all jobs that are displayed in the jobs repeater when the keyword is filled
41
41
  let ActivateURLOnchange=true; // whether to activate the url onchange
42
42
  let considerAllJobs=false; // whether to consider all jobs or not
43
+ let collapseFilterBoxWhenWindowReduced=false; // whether to collapse the filter box when the window is reduced
43
44
  const pagination = {
44
45
  pageSize: 10,
45
46
  currentPage: 1,
@@ -80,6 +81,7 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
80
81
 
81
82
  async function handleWindowResize(_$w,desktop=false) {
82
83
  if(desktop){
84
+ collapseFilterBoxWhenWindowReduced=true;
83
85
  MOBILE_FILTER_BOX_SELECTORS.forEach(selector => {
84
86
  _$w(selector).expand();
85
87
  });
@@ -92,8 +94,9 @@ async function handleWindowResize(_$w,desktop=false) {
92
94
  }
93
95
  else{
94
96
  const formFactor = await window.formFactor();
95
- if(formFactor==="Desktop"){
97
+ if(formFactor==="Desktop" && collapseFilterBoxWhenWindowReduced){
96
98
  _$w(CAREERS_PAGE_SELECTORS.FILTER_BOX).collapse();
99
+ collapseFilterBoxWhenWindowReduced=false;
97
100
  }
98
101
  if(_$w(CAREERS_PAGE_SELECTORS.FILTER_ICON).collapsed && _$w(CAREERS_PAGE_SELECTORS.EXIT_BUTTON).collapsed && _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapsed){
99
102
  _$w(CAREERS_PAGE_SELECTORS.FILTER_ICON).expand();
@@ -183,6 +186,10 @@ async function handleFilterButton(_$w) {
183
186
  _$w(selector).collapse();
184
187
  });
185
188
  }
189
+ else
190
+ {
191
+ collapseFilterBoxWhenWindowReduced=true
192
+ }
186
193
 
187
194
  }
188
195