sr-npm 1.7.293 → 1.7.295

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.293",
3
+ "version": "1.7.295",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  const { getAllPositions } = require('../backend/queries');
2
2
  const {wixData} = require('wix-data');
3
- const { location } = require('@wix/site-location');
3
+ //const { location } = require('@wix/site-location');
4
4
  const { window } = require('@wix/site-window');
5
- const { query,queryParams,to } = require("wix-location-frontend");
5
+ const { query,queryParams} = require("wix-location-frontend");
6
6
  const {
7
7
  debounce,
8
8
  getFilter,
@@ -152,12 +152,12 @@ async function bind(_$w) {
152
152
  _$w('#dropdownsContainer').collapse();
153
153
  }
154
154
 
155
- _$w('#positionsRepeater').onItemReady(async ($item, itemData) => {
156
- $item('#positionItem').onClick(async () => {
157
- let baseUrl = await location.baseUrl();
158
- to(`${baseUrl}/jobs/${itemData._id}`);
159
- });
160
- });
155
+ // _$w('#positionsRepeater').onItemReady(async ($item, itemData) => {
156
+ // $item('#positionItem').onClick(async () => {
157
+ // let baseUrl = await location.baseUrl();
158
+ // to(`${baseUrl}/jobs/${itemData._id}`);
159
+ // });
160
+ // });
161
161
  }
162
162
 
163
163
  function init(_$w) {
@@ -341,8 +341,7 @@ async function handleLocationParam(_$w,location) {
341
341
  if(dropdownOptions.length!==optionsFromCMS.items.length+1){
342
342
  fixDropdownOptions('#dropdownLocation',optionsFromCMS, _$w);
343
343
  }
344
- console.log("dropdown options after fix: ", _$w('#dropdownLocation').options);
345
-
344
+
346
345
  const option=_$w('#dropdownLocation').options.find(option => option.value.toLowerCase() === locationValue.toLowerCase())
347
346
 
348
347
  if(option){