sr-npm 1.7.337 → 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.337",
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")
@@ -200,6 +205,8 @@ function init(_$w) {
200
205
  else
201
206
  {
202
207
  queryDepartmentVar=undefined;
208
+ _$w('#dropdownDepartment').value = '';
209
+ deletedParam=true;
203
210
  }
204
211
  if(newQueryParams.location){
205
212
  console.log("setting queryLocationVar")
@@ -208,16 +215,16 @@ function init(_$w) {
208
215
  else
209
216
  {
210
217
  queryLocationVar=undefined;
218
+ _$w('#dropdownLocation').value = '';
219
+ deletedParam=true;
211
220
  }
212
- if(newQueryParams.page){
213
- console.log("setting queryPageVar")
214
- queryPageVar=newQueryParams.page;
215
- }
216
- else
221
+
222
+ handleUrlParams(_$w);
223
+ if(deletedParam)
217
224
  {
218
- queryPageVar=undefined;
225
+ applyFilters(_$w);
226
+ deletedParam=false;
219
227
  }
220
- handleUrlParams(_$w);
221
228
  });
222
229
 
223
230