sr-npm 1.7.125 → 1.7.127

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.125",
3
+ "version": "1.7.127",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,9 +17,9 @@ const {
17
17
  let queryKeyWordVar;
18
18
 
19
19
 
20
- async function careersPageOnReady(_$w,thisObject,queryPage,queryKeyWord) {
21
- queryPageVar=queryPage;
22
- queryKeyWordVar=queryKeyWord;
20
+ async function careersPageOnReady(_$w,thisObject,query) {
21
+ queryPageVar=query.page;
22
+ queryKeyWordVar=query.keyWord;
23
23
  console.log("query", query);
24
24
  console.log("query.department", query.department);
25
25
  thisObjectVar=thisObject;
package/pages/homePage.js CHANGED
@@ -15,17 +15,18 @@ async function homePageOnReady(_$w,thisObject) {
15
15
  function bind(_$w) {
16
16
  _$w('#teamRepeater').onItemReady(($item, itemData) => {
17
17
  $item('#teamButton').label = `View ${itemData.count} Open Positions`;
18
- $item('#teamButton').onClick(async ()=>{
19
- const currentUrl = await location.url();
20
- console.log("currentUrl@@@@@@@@", currentUrl);
18
+ $item('#teamButton').onClick(()=>{
19
+ location.to(`/positions?department=${itemData._id}`);
20
+ // const currentUrl = await location.url();
21
+ // console.log("currentUrl@@@@@@@@", currentUrl);
21
22
 
22
- // Get existing query params from current URL
23
- const urlObj = new URL(currentUrl);
24
- const existingParams = urlObj.search;
23
+ // // Get existing query params from current URL
24
+ // const urlObj = new URL(currentUrl);
25
+ // const existingParams = urlObj.search;
25
26
 
26
- // Navigate to /positions with existing params + department
27
- const separator = existingParams ? '&' : '?';
28
- location.to(`/positions${existingParams}${separator}department=${itemData._id}`);
27
+ // // Navigate to /positions with existing params + department
28
+ // const separator = existingParams ? '&' : '?';
29
+ // await location.to(`/positions${existingParams}${separator}department=${itemData._id}`);
29
30
  });
30
31
  });
31
32