sr-npm 1.7.800 → 1.7.801

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.800",
3
+ "version": "1.7.801",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,6 +8,7 @@ const {
8
8
  async function positionPageOnReady(_$w) {
9
9
 
10
10
  await bind(_$w);
11
+
11
12
 
12
13
  }
13
14
 
@@ -15,7 +16,7 @@ const {
15
16
  _$w('#datasetJobsItem').onReady(async () => {
16
17
 
17
18
  const item = await _$w('#datasetJobsItem').getCurrentItem();
18
-
19
+ console.log("item@@$@$@$#$@: ", item);
19
20
  handleReferFriendButton(_$w,item);
20
21
 
21
22
  handleApplyButton(_$w,item);
@@ -30,12 +31,23 @@ const {
30
31
  }
31
32
  });
32
33
 
34
+ if(_$w('#relatedJobsDataset'))
35
+ {
33
36
  _$w('#relatedJobsDataset').onReady(() => {
34
37
  const count = _$w('#relatedJobsDataset').getTotalCount();
35
38
  if(!count){
36
39
  _$w('#relatedJobsSection').collapse();
37
40
  }
38
41
  });
42
+ }
43
+
44
+ if(_$w('#relatedJobsRepNoDepartment')) // when there is no department, we filter based on category
45
+ {
46
+ _$w('#relatedJobsRepNoDepartment').onItemReady(($item, itemData) => {
47
+ $item('#relatedJobsItem').text = itemData.title;
48
+ });
49
+
50
+ }
39
51
  }
40
52
 
41
53
  function handleReferFriendButton(_$w,item) {