sr-npm 1.7.338 → 1.7.340
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 +10 -8
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -20,6 +20,7 @@ const {
|
|
|
20
20
|
let queryDepartmentVar;
|
|
21
21
|
let queryLocationVar;
|
|
22
22
|
let searchInputBlurredFirstTime=true;
|
|
23
|
+
let deletedParam=false;
|
|
23
24
|
async function careersPageOnReady(_$w,thisObject,queryParams) {
|
|
24
25
|
console.log("queryParams: ", queryParams);
|
|
25
26
|
const { page, keyWord, department, location } = queryParams;
|
|
@@ -192,6 +193,8 @@ function init(_$w) {
|
|
|
192
193
|
else
|
|
193
194
|
{
|
|
194
195
|
queryKeyWordVar=undefined;
|
|
196
|
+
_$w('#searchInput').value = '';
|
|
197
|
+
deletedParam=true;
|
|
195
198
|
}
|
|
196
199
|
if(newQueryParams.department){
|
|
197
200
|
console.log("setting queryDepartmentVar")
|
|
@@ -201,7 +204,7 @@ function init(_$w) {
|
|
|
201
204
|
{
|
|
202
205
|
queryDepartmentVar=undefined;
|
|
203
206
|
_$w('#dropdownDepartment').value = '';
|
|
204
|
-
|
|
207
|
+
deletedParam=true;
|
|
205
208
|
}
|
|
206
209
|
if(newQueryParams.location){
|
|
207
210
|
console.log("setting queryLocationVar")
|
|
@@ -211,16 +214,15 @@ function init(_$w) {
|
|
|
211
214
|
{
|
|
212
215
|
queryLocationVar=undefined;
|
|
213
216
|
_$w('#dropdownLocation').value = '';
|
|
217
|
+
deletedParam=true;
|
|
214
218
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
else
|
|
219
|
+
|
|
220
|
+
handleUrlParams(_$w);
|
|
221
|
+
if(deletedParam)
|
|
220
222
|
{
|
|
221
|
-
|
|
223
|
+
applyFilters(_$w);
|
|
224
|
+
deletedParam=false;
|
|
222
225
|
}
|
|
223
|
-
handleUrlParams(_$w);
|
|
224
226
|
});
|
|
225
227
|
|
|
226
228
|
|