sr-npm 1.7.157 → 1.7.159

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.157",
3
+ "version": "1.7.159",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -95,7 +95,9 @@ 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
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();
99
101
  }
100
102
 
101
103
  async function handlePageParam(_$w) {
@@ -277,7 +279,7 @@ async function handleDepartmentParam(_$w,department) {
277
279
  await applyFilters(_$w, true); // Skip URL update since we're handling initial URL params
278
280
  }
279
281
  else{
280
- console.log("department value not found in dropdown options");
282
+ console.warn("department value not found in dropdown options");
281
283
  queryParams.remove(["department" ]);
282
284
 
283
285
  }
package/pages/homePage.js CHANGED
@@ -48,14 +48,13 @@ function init(_$w) {
48
48
 
49
49
  _$w('#searchInput').onInput(debouncedInput);
50
50
  _$w('#searchInput').maxLength = 40;
51
- _$w('#button1').onClick(()=>{
51
+ _$w('#searchButton').onClick(()=>{
52
52
  const trimmedInput = _$w('#searchInput').value.trim();
53
53
  if (trimmedInput) {
54
54
  location.to(`/positions?keyWord=${trimmedInput}`);
55
55
  }
56
56
  });
57
57
 
58
-
59
58
  _$w('#searchInput').onKeyPress((event) => {
60
59
  if (event.key === 'Enter') {
61
60
  handleEnterPress(_$w('#searchInput').value);