sr-npm 1.7.1308 → 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.1308",
3
+ "version": "1.7.1311",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -64,10 +64,10 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
64
64
  });
65
65
 
66
66
  handleFilterButton(_$w);
67
-
68
67
  setInterval(async () => {
69
68
  const windowinfo=await window.getBoundingRect();
70
69
  if(windowinfo.window.width>1000){
70
+
71
71
  handleWindowResize(_$w,true);
72
72
  }
73
73
  else{
@@ -91,9 +91,14 @@ async function handleWindowResize(_$w,desktop=false) {
91
91
  _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapse();
92
92
  }
93
93
  else{
94
+ const formFactor = await window.formFactor();
95
+ if(formFactor==="Desktop"){
96
+ _$w(CAREERS_PAGE_SELECTORS.filterBox).collapse();
97
+ }
94
98
  if(_$w(CAREERS_PAGE_SELECTORS.FILTER_ICON).collapsed && _$w(CAREERS_PAGE_SELECTORS.EXIT_BUTTON).collapsed && _$w(CAREERS_PAGE_SELECTORS.REFINE_SEARCH_BUTTON).collapsed){
95
99
  _$w(CAREERS_PAGE_SELECTORS.FILTER_ICON).expand();
96
100
  }
101
+
97
102
  }
98
103
 
99
104
  }
@@ -17,7 +17,6 @@ const {
17
17
  if(siteconfig===undefined) {
18
18
  siteconfig = await wixData.query(COLLECTIONS.SITE_CONFIGS).find().then(result => result.items[0]);
19
19
  }
20
- console.log("positionPageOnReady called");
21
20
  const item = await _$w('#datasetJobsItem').getCurrentItem();
22
21
 
23
22
  if(siteconfig.customFields==="true") {
@@ -25,11 +24,11 @@ const {
25
24
 
26
25
 
27
26
  const companysegmentValue=multiRefField.filter(field => field.customField===COMPANY_SEGMENT_CUSTOM_FIELD_ID_IN_CMS && field.title===siteconfig.showNotifyMeForCompanySegment);
28
- console.log("companysegmentValue: ",companysegmentValue);
27
+
29
28
  if(companysegmentValue===undefined || companysegmentValue.length===0) {
30
29
 
31
30
  _$w("#notifyMe").hide()
32
- console.log("companysegmentValue is Store Support Office, hiding notifyMe");
31
+ console.log(`companysegmentValue is ${siteconfig.showNotifyMeForCompanySegment}, hiding notifyMe`);
33
32
  }
34
33
 
35
34