sr-npm 1.7.825 → 1.7.827

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.825",
3
+ "version": "1.7.827",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ const {
20
20
  }
21
21
 
22
22
  async function getCategoryValueId(customFields) {
23
+ console.log("customFields: ", customFields);
23
24
  const categoryCustomField=await wixData.query(COLLECTIONS.CUSTOM_FIELDS).eq(CUSTOM_FIELDS_COLLECTION_FIELDS.TITLE,"Category").find().then(result => result.items[0]);
24
25
  for(const field of customFields) {
25
26
  if(field.customField===categoryCustomField._id) {
@@ -35,6 +36,7 @@ async function getCategoryValueId(customFields) {
35
36
 
36
37
  const item = await _$w('#datasetJobsItem').getCurrentItem();
37
38
  const multiRefField=await getPositionWithMultiRefField(item._id);
39
+ console.log("multiRefField: ", multiRefField);
38
40
  const categoryValueId=await getCategoryValueId(multiRefField);
39
41
 
40
42
  handleReferFriendButton(_$w,item);
@@ -55,36 +57,17 @@ async function getCategoryValueId(customFields) {
55
57
  _$w('#relatedJobsRepNoDepartment').onItemReady(($item, itemData) => {
56
58
  $item('#relatedJobTitle').text = itemData.title;
57
59
  $item('#relatedJobLocation').text = itemData.location.fullLocation;
58
- // $item('#relatedJobTitle').onClick(async () => {
59
- // await location.to(itemData["link-jobs-title"]);
60
- // });
61
60
  });
62
61
  _$w('#relatedJobsRepNoDepartment').data = relatedJobs
63
- console.log("before on click");
64
- _$w('#relatedJobsNoDepartmentItem1').onClick((event) => {
65
- console.log("event clicked: ");
66
- const data = _$w("#relatedJobsRepNoDepartment").data;
67
- console.log("data: ", data);
68
- console.log("event: ", event);
69
- const clickedItemData = data.find(
70
- (item) => item._id === event.context.itemId,
71
- );
72
- console.log("clickedItemData: ", clickedItemData);
73
- location.to(clickedItemData["link-jobs-title"]);
74
- });
62
+
75
63
 
76
64
  }
77
65
  });
78
- console.log("before on click");
79
- _$w('#relatedJobsNoDepartmentItem').onClick((event) => {
80
- console.log("event clicked: ");
66
+ _$w('#relatedJobsNoDepartmentItem').onClick((event) => {
81
67
  const data = _$w("#relatedJobsRepNoDepartment").data;
82
- console.log("data: ", data);
83
- console.log("event: ", event);
84
68
  const clickedItemData = data.find(
85
69
  (item) => item._id === event.context.itemId,
86
70
  );
87
- console.log("clickedItemData: ", clickedItemData);
88
71
  location.to(clickedItemData["link-jobs-title"]);
89
72
  });
90
73
  if(_$w('#relatedJobsDataset') && _$w('#relatedJobsDataset').length>0)