sr-npm 1.7.75 → 1.7.77
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 -4
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { getAllPositions } = require('../backend/queries');
|
|
2
2
|
//const { items: wixData } = require('@wix/data');
|
|
3
|
-
const wixData = require('wix-data');
|
|
3
|
+
const {wixData} = require('wix-data');
|
|
4
|
+
import { window } from "@wix/site-window";
|
|
4
5
|
const { location,queryParams } = require('@wix/site-location');
|
|
5
6
|
const {
|
|
6
7
|
debounce,
|
|
@@ -80,7 +81,7 @@ async function handleUrlParams(_$w) {
|
|
|
80
81
|
async function handleKeyWordParam(_$w,keyWord) {
|
|
81
82
|
_$w('#searchInput').value = keyWord;
|
|
82
83
|
//const filter = await wixData.query("Jobs").contains("title", keyWord);
|
|
83
|
-
await $w("#jobsDataset").setFilter(wixData.filter().contains("title",
|
|
84
|
+
await $w("#jobsDataset").setFilter(wixData.filter().contains("title", keyWord));
|
|
84
85
|
await _$w("#jobsDataset").refresh();
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -98,7 +99,7 @@ async function handlePageParam(_$w,page) {
|
|
|
98
99
|
if (page) {
|
|
99
100
|
pageParamSet=page;
|
|
100
101
|
//scrolls a bit to load the dataset data
|
|
101
|
-
await scrollTo(0, 200,{scrollAnimation:false});
|
|
102
|
+
await window.scrollTo(0, 200,{scrollAnimation:false});
|
|
102
103
|
for (let i = 2; i <= page; i++) {
|
|
103
104
|
await _$w("#jobsDataset").loadMore();
|
|
104
105
|
currentLoadedItems=currentLoadedItems+itemsPerPage
|
|
@@ -127,7 +128,7 @@ async function bind(_$w) {
|
|
|
127
128
|
|
|
128
129
|
});
|
|
129
130
|
|
|
130
|
-
if (formFactor === "Mobile") {
|
|
131
|
+
if (await window.formFactor === "Mobile") {
|
|
131
132
|
_$w('#dropdownsContainer').collapse();
|
|
132
133
|
}
|
|
133
134
|
|