sr-npm 1.7.338 → 1.7.339

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.338",
3
+ "version": "1.7.339",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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;
@@ -101,6 +102,8 @@ async function handleUrlParams(_$w) {
101
102
  if (queryLocationVar) {
102
103
  await handleLocationParam(_$w,queryLocationVar);
103
104
  }
105
+
106
+ if()
104
107
  }
105
108
 
106
109
  async function handleKeyWordParam(_$w,keyWord) {
@@ -192,6 +195,8 @@ function init(_$w) {
192
195
  else
193
196
  {
194
197
  queryKeyWordVar=undefined;
198
+ _$w('#searchInput').value = '';
199
+ deletedParam=true;
195
200
  }
196
201
  if(newQueryParams.department){
197
202
  console.log("setting queryDepartmentVar")
@@ -201,7 +206,7 @@ function init(_$w) {
201
206
  {
202
207
  queryDepartmentVar=undefined;
203
208
  _$w('#dropdownDepartment').value = '';
204
-
209
+ deletedParam=true;
205
210
  }
206
211
  if(newQueryParams.location){
207
212
  console.log("setting queryLocationVar")
@@ -211,16 +216,15 @@ function init(_$w) {
211
216
  {
212
217
  queryLocationVar=undefined;
213
218
  _$w('#dropdownLocation').value = '';
219
+ deletedParam=true;
214
220
  }
215
- if(newQueryParams.page){
216
- console.log("setting queryPageVar")
217
- queryPageVar=newQueryParams.page;
218
- }
219
- else
221
+
222
+ handleUrlParams(_$w);
223
+ if(deletedParam)
220
224
  {
221
- queryPageVar=undefined;
225
+ applyFilters(_$w);
226
+ deletedParam=false;
222
227
  }
223
- handleUrlParams(_$w);
224
228
  });
225
229
 
226
230