sr-npm 1.2.35 → 1.2.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
CHANGED
|
@@ -112,7 +112,6 @@ function handleFilterInMobile(_$w) {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
|
|
116
115
|
async function handleUrlParams(_$w,urlParams) {
|
|
117
116
|
try {
|
|
118
117
|
let applyFiltering=false;
|
|
@@ -121,11 +120,20 @@ async function handleUrlParams(_$w,urlParams) {
|
|
|
121
120
|
if(urlParams.keyword) {
|
|
122
121
|
applyFiltering = await primarySearch(_$w, decodeURIComponent(urlParams.keyword));
|
|
123
122
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value = decodeURIComponent(urlParams.keyword);
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
_$w("#jobsDataset").onReady(async () => {
|
|
124
|
+
let items = [];
|
|
125
|
+
let data = await _$w("#jobsDataset").getItems(0, 1000);
|
|
126
|
+
items.push(...data.items);
|
|
127
|
+
|
|
128
|
+
while (_$w("#jobsDataset").hasNext()) {
|
|
129
|
+
_$w("#jobsDataset").next();
|
|
130
|
+
const nextItems = await _$w("#jobsDataset").getItems(0, 1000);
|
|
131
|
+
items.push(...nextItems.items);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
currentJobs = items;
|
|
135
|
+
keywordAllJobs = items;
|
|
136
|
+
});
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
for (const url of possibleUrlParams)
|