sr-npm 1.7.126 → 1.7.128

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.126",
3
+ "version": "1.7.128",
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,22 @@ 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
+ console.log("itemDataid3########", itemData._id);
20
+ const department=itemData._id;
21
+ console.log(typeof department);
22
+ location.to(`/positions?department=${department}`);
21
23
 
22
- // Get existing query params from current URL
23
- const urlObj = new URL(currentUrl);
24
- const existingParams = urlObj.search;
24
+ // const currentUrl = await location.url();
25
+ // console.log("currentUrl@@@@@@@@", currentUrl);
25
26
 
26
- // Navigate to /positions with existing params + department
27
- const separator = existingParams ? '&' : '?';
28
- await location.to(`/positions${existingParams}${separator}department=${itemData._id}`);
27
+ // // Get existing query params from current URL
28
+ // const urlObj = new URL(currentUrl);
29
+ // const existingParams = urlObj.search;
30
+
31
+ // // Navigate to /positions with existing params + department
32
+ // const separator = existingParams ? '&' : '?';
33
+ // await location.to(`/positions${existingParams}${separator}department=${itemData._id}`);
29
34
  });
30
35
  });
31
36