sr-npm 1.7.246 → 1.7.248
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/careersPage.js +5 -6
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { getAllPositions } = require('../backend/queries');
|
|
2
2
|
const {wixData} = require('wix-data');
|
|
3
|
+
//const { location } = require('@wix/site-location');
|
|
3
4
|
const { window } = require('@wix/site-window');
|
|
4
|
-
const { query,queryParams,to } = require("wix-location-frontend");
|
|
5
|
+
const { query,queryParams,to,wixLocationFrontend } = require("wix-location-frontend");
|
|
5
6
|
const {
|
|
6
7
|
debounce,
|
|
7
8
|
getFilter,
|
|
@@ -153,11 +154,9 @@ async function bind(_$w) {
|
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
_$w('#positionsRepeater').onItemReady(async ($item, itemData) => {
|
|
156
|
-
$item('#positionItem').onClick(() => {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
console.log("itemData['link-jobs-title']: ", itemData['link-jobs-title']);
|
|
160
|
-
to(`${itemData['link-jobs-title']}`);
|
|
157
|
+
$item('#positionItem').onClick(async () => {
|
|
158
|
+
let baseUrl = wixLocationFrontend.baseUrl();
|
|
159
|
+
to(`${baseUrl}/jobs/${itemData._id}`);
|
|
161
160
|
});
|
|
162
161
|
});
|
|
163
162
|
}
|