sr-npm 1.7.159 → 1.7.161

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.159",
3
+ "version": "1.7.161",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,10 +17,10 @@ const {
17
17
  let queryKeyWordVar;
18
18
  let queryDepartmentVar;
19
19
 
20
- async function careersPageOnReady(_$w,thisObject,query) {
21
- queryPageVar=query.page;
22
- queryKeyWordVar=query.keyWord;
23
- queryDepartmentVar=query.department;
20
+ async function careersPageOnReady(_$w,thisObject,querypage,querykeyWord,querydepartment) {
21
+ queryPageVar=querypage;
22
+ queryKeyWordVar=querykeyWord;
23
+ queryDepartmentVar=querydepartment;
24
24
  thisObjectVar=thisObject;
25
25
  allJobs=await getAllPositions();
26
26
  await handleUrlParams(_$w);
@@ -95,9 +95,7 @@ async function handleUrlParams(_$w) {
95
95
  async function handleKeyWordParam(_$w,keyWord) {
96
96
  _$w('#searchInput').value = keyWord;
97
97
  // Use applyFilters to maintain consistency instead of directly setting filter
98
- // await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
99
- await _$w("#jobsDataset").setFilter(wixData.filter().contains("title", keyWord));
100
- await _$w("#jobsDataset").refresh();
98
+ await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
101
99
  }
102
100
 
103
101
  async function handlePageParam(_$w) {
@@ -260,6 +258,7 @@ async function updateCount(_$w) {
260
258
  }
261
259
 
262
260
  async function handleDepartmentParam(_$w,department) {
261
+ console.log("handleDepartmentParam@@@@@", department);
263
262
  const departmentValue = department.replace('-', ' ');
264
263
 
265
264