sr-npm 3.1.36 → 3.1.37
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 +1 -1
- package/pages/positionPage.js +13 -4
package/package.json
CHANGED
package/pages/positionPage.js
CHANGED
|
@@ -61,10 +61,10 @@ async function getCategoryValue(customValues) {
|
|
|
61
61
|
handleReferFriendButton(_$w,item);
|
|
62
62
|
handleApplyButton(_$w,item);
|
|
63
63
|
|
|
64
|
-
item.jobDescription.companyDescription
|
|
65
|
-
item.jobDescription.jobDescription
|
|
66
|
-
item.jobDescription.qualifications
|
|
67
|
-
|
|
64
|
+
handleStackContent(_$w,item.jobDescription.companyDescription,'companyDescriptionStack','companyDescriptionText');
|
|
65
|
+
handleStackContent(_$w,item.jobDescription.jobDescription,'responsibilitiesStack','responsibilitiesText');
|
|
66
|
+
handleStackContent(_$w,item.jobDescription.qualifications,'qualificationsStack','qualificationsText');
|
|
67
|
+
|
|
68
68
|
_$w('#relatedJobsTitleText').text = `More ${item.department} Positions`;
|
|
69
69
|
if(isElementExistOnPage(_$w('#additionalInfoText')))
|
|
70
70
|
{
|
|
@@ -150,6 +150,15 @@ async function getCategoryValue(customValues) {
|
|
|
150
150
|
return appendQueryParams(url, query);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
function handleStackContent(_$w,content,stackId,textId) {
|
|
154
|
+
if(content===undefined) {
|
|
155
|
+
_$w(stackId).collapse();
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
_$w(textId).content = content;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
153
162
|
async function getRelatedJobs({ categoryValueId, itemId, limit = 1000 }) {
|
|
154
163
|
const relatedJobs=await wixData.query(COLLECTIONS.JOBS).include(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES).hasSome(JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,[categoryValueId]).ne("_id",itemId).limit(limit).find();
|
|
155
164
|
return relatedJobs.items;
|