sr-npm 1.7.328 → 1.7.329

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.328",
3
+ "version": "1.7.329",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -216,6 +216,9 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
216
216
  filter.value = '';
217
217
  if (!skipUrlUpdate) {
218
218
  queryParams.remove(["keyWord", "department","page","location"]);
219
+ queryKeyWordVar=undefined;
220
+ queryDepartmentVar=undefined;
221
+ queryLocationVar=undefined;
219
222
  }
220
223
  }
221
224
 
@@ -224,12 +227,15 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
224
227
  if (!skipUrlUpdate) {
225
228
  if(filter.field === 'title'){
226
229
  queryParams.add({ keyWord: filter.value });
230
+ queryKeyWordVar=filter.value;
227
231
  }
228
232
  if(filter.field === 'department'){
229
233
  queryParams.add({ department: encodeURIComponent(filter.value) });
234
+ queryDepartmentVar=filter.value;
230
235
  }
231
236
  if(filter.field === 'cityText'){
232
237
  queryParams.add({ location: encodeURIComponent(filter.value) });
238
+ queryLocationVar=filter.value;
233
239
  }
234
240
  }
235
241
  if(filter.field === 'remote') {
@@ -243,12 +249,15 @@ async function applyFilters(_$w, skipUrlUpdate = false) {
243
249
  if (!skipUrlUpdate) {
244
250
  if(filter.field === 'title'){
245
251
  queryParams.remove(["keyWord" ]);
252
+ queryKeyWordVar=undefined;
246
253
  }
247
254
  if(filter.field === 'department'){
248
255
  queryParams.remove(["department" ]);
256
+ queryDepartmentVar=undefined;
249
257
  }
250
258
  if(filter.field === 'cityText'){
251
259
  queryParams.remove(["location" ]);
260
+ queryLocationVar=undefined;
252
261
  }
253
262
  }
254
263
  }