sr-npm 1.7.345 → 1.7.347

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.345",
3
+ "version": "1.7.347",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@ thisObjectVar=thisObject;
32
32
  allJobs=await getAllPositions();
33
33
  await activateAutoLoad(_$w);
34
34
  await bind(_$w);
35
- await init(_$w);
35
+ await init(_$w,thisObject,queryParams);
36
36
  await handleUrlParams(_$w);
37
37
 
38
38
  }
@@ -160,7 +160,7 @@ async function bind(_$w) {
160
160
 
161
161
  }
162
162
 
163
- function init(_$w) {
163
+ function init(_$w,thisObject,queryParams) {
164
164
  const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
165
165
  _$w('#searchInput').onInput(debouncedSearch);
166
166
  _$w('#searchInput').onBlur(()=>{
@@ -183,6 +183,16 @@ function init(_$w) {
183
183
 
184
184
  //URL onChange
185
185
  onChange(async ()=>{
186
+ const newQueryParams=await location.query();
187
+ console.log("onChange triggering on ready");
188
+ console.log("newQueryParams: ", newQueryParams);
189
+ location.to(`/positions?KeyWord=123}`);
190
+
191
+
192
+
193
+
194
+ //try onready first
195
+ //try location to
186
196
 
187
197
 
188
198