sr-npm 1.7.1334 → 1.7.1335
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
|
@@ -10,7 +10,7 @@ async function handlePrimarySearch(_$w, allvaluesobjects) {
|
|
|
10
10
|
loadCategoryRepeaterData(_$w, allvaluesobjects);
|
|
11
11
|
|
|
12
12
|
// wait for the jobs dataset to be ready
|
|
13
|
-
await _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
13
|
+
await _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).onReadyAsync();
|
|
14
14
|
|
|
15
15
|
await bindPrimarySearch(_$w);
|
|
16
16
|
}
|
|
@@ -125,12 +125,12 @@ async function queryPrimarySearchResults(_$w, query) {
|
|
|
125
125
|
|
|
126
126
|
let filter = await getFilter(searchByTitle);
|
|
127
127
|
|
|
128
|
-
await _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
129
|
-
await _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
128
|
+
await _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).setFilter(filter);
|
|
129
|
+
await _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).refresh();
|
|
130
130
|
|
|
131
131
|
let count=0
|
|
132
132
|
try{
|
|
133
|
-
count = _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
133
|
+
count = _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).getTotalCount();
|
|
134
134
|
}
|
|
135
135
|
catch (error) {
|
|
136
136
|
if(error.message==="Cannot read properties of undefined (reading 'total')")
|
|
@@ -149,12 +149,12 @@ catch (error) {
|
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
151
|
filter = await getFilter(searchByCity);
|
|
152
|
-
await _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
153
|
-
await _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
152
|
+
await _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).setFilter(filter);
|
|
153
|
+
await _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).refresh();
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
try{
|
|
157
|
-
count = _$w(GLOBAL_SECTIONS_SELECTORS.
|
|
157
|
+
count = _$w(GLOBAL_SECTIONS_SELECTORS.PRIMARY_JOBS_REPEATER_Dataset).getTotalCount();
|
|
158
158
|
}
|
|
159
159
|
catch (error) {
|
|
160
160
|
if(error.message==="Cannot read properties of undefined (reading 'total')")
|