sr-npm 1.7.334 → 1.7.336

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.334",
3
+ "version": "1.7.336",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -180,6 +180,7 @@ function init(_$w) {
180
180
  _$w('#dropdownsContainer, #closeFiltersButton').collapse();
181
181
  });
182
182
 
183
+ //URL onChange
183
184
  onChange(async ()=>{
184
185
 
185
186
  const newQueryParams=await location.query();
@@ -188,18 +189,34 @@ function init(_$w) {
188
189
  console.log("setting querykeypaaram")
189
190
  queryKeyWordVar=newQueryParams.keyWord;
190
191
  }
192
+ else
193
+ {
194
+ queryKeyWordVar=undefined;
195
+ }
191
196
  if(newQueryParams.department){
192
197
  console.log("setting queryDepartmentVar")
193
198
  queryDepartmentVar=newQueryParams.department;
194
199
  }
200
+ else
201
+ {
202
+ queryDepartmentVar=undefined;
203
+ }
195
204
  if(newQueryParams.location){
196
205
  console.log("setting queryLocationVar")
197
206
  queryLocationVar=newQueryParams.location;
198
207
  }
208
+ else
209
+ {
210
+ queryLocationVar=undefined;
211
+ }
199
212
  if(newQueryParams.page){
200
213
  console.log("setting queryPageVar")
201
214
  queryPageVar=newQueryParams.page;
202
215
  }
216
+ else
217
+ {
218
+ queryPageVar=undefined;
219
+ }
203
220
  handleUrlParams(_$w);
204
221
  });
205
222