sr-npm 1.7.138 → 1.7.140

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.138",
3
+ "version": "1.7.140",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -158,7 +158,7 @@ function init(_$w) {
158
158
  const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
159
159
 
160
160
  _$w('#searchInput').onInput(debouncedSearch);
161
- _$w('#dropdownDepartment, #dropdownLocation, #dropdownJobType').onChange(()=>applyFilters(_$w));
161
+ // _$w('#dropdownDepartment, #dropdownLocation, #dropdownJobType').onChange(()=>applyFilters(_$w));
162
162
  _$w('#resetFiltersButton, #clearSearch').onClick(()=>resetFilters(_$w));
163
163
 
164
164
  _$w('#openFiltersButton').onClick(()=>{
@@ -171,7 +171,8 @@ function init(_$w) {
171
171
  }
172
172
 
173
173
  async function applyFilters(_$w) {
174
-
174
+ console.log("applyFilters");
175
+ console.log("after applyFilters_$w('#dropdownDepartment').value", _$w('#dropdownDepartment').value);
175
176
  const dropdownFiltersMapping = [
176
177
  { elementId: '#dropdownDepartment', field: 'department', value: _$w('#dropdownDepartment').value },
177
178
  { elementId: '#dropdownLocation', field: 'cityText', value: _$w('#dropdownLocation').value },
@@ -256,12 +257,9 @@ async function updateCount(_$w) {
256
257
  async function handleDepartmentParam(_$w,department) {
257
258
  console.log("department inside handleDepartmentParam", department.replace('-', ' '));
258
259
  _$w('#dropdownDepartment').value = department.replace('-', ' ');
259
- // _$w("#dataset2").onReady(async () => {
260
- // _$w('#dataset2').setFieldValue("title", department.replace('-', ' '));
261
- // await _$w('#dataset2').save();
260
+ console.log("before applyFilters_$w('#dropdownDepartment').value", _$w('#dropdownDepartment').value);
262
261
 
263
262
  await applyFilters(_$w);
264
- // });
265
263
  }
266
264
 
267
265