sr-npm 1.7.938 → 1.7.939
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
|
@@ -27,6 +27,8 @@ async function handleVideoSection(_$w) {
|
|
|
27
27
|
async function handlePeopleSection(_$w) {
|
|
28
28
|
const currentPeopleRepeaterData= _$w(supportTeamsPageIds.PEOPLE_REPEATER).data;
|
|
29
29
|
console.log("currentPeopleRepeaterData: ",currentPeopleRepeaterData);
|
|
30
|
+
let itemObj = _$w("#peopleDataset").getCurrentItem();
|
|
31
|
+
console.log("itemObj: ",itemObj);
|
|
30
32
|
if(currentPeopleRepeaterData.length === 0) {
|
|
31
33
|
console.log("No people found , collapsing people section ");
|
|
32
34
|
collapseSection(_$w,"people");
|
|
@@ -39,7 +41,7 @@ async function handlePeopleSection(_$w) {
|
|
|
39
41
|
async function handleRecentJobsSection(_$w) {
|
|
40
42
|
|
|
41
43
|
|
|
42
|
-
console.log("currentItem 2 3 4: ",currentItem);
|
|
44
|
+
console.log("currentItem 2 3 4 5: ",currentItem);
|
|
43
45
|
if(supportTeamsPageIds.excludeValues.has(currentItem.title_fld)) {
|
|
44
46
|
console.log("Value is excluded , collapsing recently Jobs Section ");
|
|
45
47
|
collapseSection(_$w,"recentJobs");
|
|
@@ -49,7 +51,6 @@ async function handleRecentJobsSection(_$w) {
|
|
|
49
51
|
console.log("valueId: ",valueId);
|
|
50
52
|
const Value=await getValueFromValueId(valueId);
|
|
51
53
|
console.log("Value: ",Value);
|
|
52
|
-
console.log("testt@#!!@#!#@#!@!@!@#")
|
|
53
54
|
if(Value===undefined) {
|
|
54
55
|
console.log("Value is undefined , collapsing recently Jobs Section ");
|
|
55
56
|
collapseSection(_$w,"recentJobs");
|
|
@@ -57,11 +58,7 @@ async function handleRecentJobsSection(_$w) {
|
|
|
57
58
|
}
|
|
58
59
|
const latestsJobs=await getLatestJobsByValue(Value);
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
// console.log("No jobs found , collapsing recently Jobs Section ");
|
|
62
|
-
// collapseSection(_$w);
|
|
63
|
-
// return;
|
|
64
|
-
// }
|
|
61
|
+
|
|
65
62
|
_$w(supportTeamsPageIds.RECENT_JOBS_REPEATER).onItemReady(($item, itemData) => {
|
|
66
63
|
$item(supportTeamsPageIds.JOB_TITLE).text = itemData.title;
|
|
67
64
|
$item(supportTeamsPageIds.JOB_LOCATION).text = itemData.location.fullLocation;
|
|
@@ -77,7 +74,7 @@ async function handleRecentJobsSection(_$w) {
|
|
|
77
74
|
location.to(clickedItemData["link-jobs-title"]);
|
|
78
75
|
});
|
|
79
76
|
|
|
80
|
-
_$w(supportTeamsPageIds.
|
|
77
|
+
_$w(supportTeamsPageIds.RECENT_JOBS_BUTTON).onClick( () => {
|
|
81
78
|
location.to(`/search?category=${Value.title}`);
|
|
82
79
|
});
|
|
83
80
|
}
|