sr-npm 3.0.2 → 3.1.0

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/backend/data.js CHANGED
@@ -41,7 +41,7 @@ async function filterBasedOnBrand(positions) {
41
41
 
42
42
  const desiredBrand = await getTokenFromCMS(TOKEN_NAME.DESIRED_BRAND);
43
43
  validateSingleDesiredBrand(desiredBrand);
44
- console.log("filtering positions based on brand: ", desiredBrand);\
44
+ console.log("filtering positions based on brand: ", desiredBrand);
45
45
  return positions.content.filter(position => {
46
46
  const brand = getBrand(position.customField);
47
47
  if (!brand) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,11 +1,9 @@
1
1
 
2
2
  const { location } = require("@wix/site-location");
3
- async function boardPeoplePageOnReady(_$w,) {
4
3
 
4
+ async function boardPeoplePageOnReady(_$w,) {
5
5
  await bindBoardPeopleRepeaters(_$w);
6
-
7
-
8
- }
6
+ }
9
7
 
10
8
  async function bindBoardPeopleRepeaters(_$w) {
11
9
 
@@ -1,5 +1,6 @@
1
1
 
2
2
  const { location } = require("@wix/site-location");
3
+
3
4
  async function brandPageOnReady(_$w,brand) {
4
5
  const decodedBrand = decodeURIComponent(brand);
5
6
  _$w('#seeJobsButton').onClick(() => {
@@ -1,4 +1,4 @@
1
- const { COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
1
+ const { CAREERS_PAGE_SELECTORS, COLLECTIONS,CUSTOM_VALUES_COLLECTION_FIELDS,JOBS_COLLECTION_FIELDS } = require('../backend/collectionConsts');
2
2
 
3
3
  const { queryParams,onChange} = require('wix-location-frontend');
4
4
  const { location } = require("@wix/site-location");
@@ -23,12 +23,13 @@ const pagination = {
23
23
  pageSize: 10,
24
24
  currentPage: 1,
25
25
  };
26
+
26
27
  async function careersMultiBoxesPageOnReady(_$w,urlParams) {
27
28
  //to handle back and forth , url changes
28
29
  onChange(async ()=>{
29
30
  await handleBackAndForth(_$w);
30
31
  });
31
-
32
+
32
33
  await loadData(_$w);
33
34
  loadJobsRepeater(_$w);
34
35
  loadPrimarySearchRepeater(_$w);
@@ -221,7 +221,6 @@ async function handleBackAndForth(_$w){
221
221
  }
222
222
  else{
223
223
  queryDepartmentVar=undefined;
224
- deletedParam=true;
225
224
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_DEPARTMENT).value = '';
226
225
  }
227
226
  if(newQueryParams.location){
@@ -229,7 +228,6 @@ async function handleBackAndForth(_$w){
229
228
  }
230
229
  else{
231
230
  queryLocationVar=undefined;
232
- deletedParam=true
233
231
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_LOCATION).value = '';
234
232
  }
235
233
  if(newQueryParams.keyWord){
@@ -237,7 +235,6 @@ async function handleBackAndForth(_$w){
237
235
  }
238
236
  else{
239
237
  queryKeyWordVar=undefined;
240
- deletedParam=true;
241
238
  _$w(CAREERS_PAGE_SELECTORS.SEARCH_INPUT).value = '';
242
239
  }
243
240
  if(newQueryParams.jobType){
@@ -245,7 +242,6 @@ async function handleBackAndForth(_$w){
245
242
  }
246
243
  else{
247
244
  queryJobTypeVar=undefined;
248
- deletedParam=true;
249
245
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_JOB_TYPE).value = '';
250
246
  }
251
247
  if(_$w(CAREERS_PAGE_SELECTORS.DROPDOWN_BRAND).isVisible){
@@ -254,7 +250,6 @@ async function handleBackAndForth(_$w){
254
250
  }
255
251
  else{
256
252
  queryBrandVar=undefined;
257
- deletedParam=true;
258
253
  _$w(CAREERS_PAGE_SELECTORS.DROPDOWN_BRAND).value = '';
259
254
  }
260
255
  }