sr-npm 1.7.1310 → 1.7.1311

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.1310",
3
+ "version": "1.7.1311",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,7 +40,6 @@ 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;
44
43
  const pagination = {
45
44
  pageSize: 10,
46
45
  currentPage: 1,
@@ -68,7 +67,7 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
68
67
  setInterval(async () => {
69
68
  const windowinfo=await window.getBoundingRect();
70
69
  if(windowinfo.window.width>1000){
71
- collapseFilterBoxWhenWindowReduced=false;
70
+
72
71
  handleWindowResize(_$w,true);
73
72
  }
74
73
  else{
@@ -92,7 +91,8 @@ async function handleWindowResize(_$w,desktop=false) {
92
91
  _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapse();
93
92
  }
94
93
  else{
95
- if(collapseFilterBoxWhenWindowReduced){
94
+ const formFactor = await window.formFactor();
95
+ if(formFactor==="Desktop"){
96
96
  _$w(CAREERS_PAGE_SELECTORS.filterBox).collapse();
97
97
  }
98
98
  if(_$w(CAREERS_PAGE_SELECTORS.FILTER_ICON).collapsed && _$w(CAREERS_PAGE_SELECTORS.EXIT_BUTTON).collapsed && _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapsed){
@@ -183,10 +183,6 @@ async function handleFilterButton(_$w) {
183
183
  _$w(selector).collapse();
184
184
  });
185
185
  }
186
- else//Desktop
187
- {
188
- collapseFilterBoxWhenWindowReduced=true;
189
- }
190
186
 
191
187
  }
192
188