sr-npm 1.7.356 → 1.7.357

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.356",
3
+ "version": "1.7.357",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -92,6 +92,7 @@ async function handleUrlParams(_$w) {
92
92
  console.log("queryPageVar: ", queryPageVar);
93
93
  console.log("queryDepartmentVar: ", queryDepartmentVar);
94
94
  console.log("queryLocationVar: ", queryLocationVar);
95
+ console.log("queryJobTypeVar: ", queryJobTypeVar);
95
96
  if (queryKeyWordVar) {
96
97
  await handleKeyWordParam(_$w,queryKeyWordVar);
97
98
  }
@@ -491,9 +492,17 @@ async function handleJobTypeParam(_$w,jobType) {
491
492
  const jobTypeValue = decodeURIComponent(jobType);
492
493
  let dropdownOptions = _$w('#dropdownJobType').options;
493
494
  console.log("jobType dropdown options:", dropdownOptions);
494
- const option=_$w('#dropdownJobType').options.find(option => option.value.toLowerCase() === jobTypeValue.toLowerCase())
495
+ let option;
496
+ if(jobTypeValue.toLocaleLowerCase==="remote"){
497
+ option="true";
498
+ }
499
+ if(jobTypeValue.toLocaleLowerCase==="onsite"){
500
+ option="false";
501
+ }
502
+ //const option=_$w('#dropdownJobType').options.find(option => option.value.toLowerCase() === jobTypeValue.toLowerCase())
495
503
  if(option){
496
- _$w('#dropdownJobType').value = option.value;
504
+
505
+ _$w('#dropdownJobType').value = option;
497
506
  }
498
507
  else{
499
508
  console.warn("jobType value not found in dropdown options");