sr-npm 1.7.947 → 1.7.949
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 +1 -1
- package/pages/boardPeoplePage.js +30 -0
- package/pages/careersMultiBoxesPage.js +5 -0
- package/pages/index.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
const { location } = require("@wix/site-location");
|
|
3
|
+
async function boardPeoplePageOnReady(_$w,) {
|
|
4
|
+
|
|
5
|
+
await bindBoardPeopleRepeaters(_$w);
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async function bindBoardPeopleRepeaters(_$w) {
|
|
11
|
+
|
|
12
|
+
_$w('#directorsRepeaterItem').onClick((event) => {
|
|
13
|
+
const $item = _$w.at(event.context);
|
|
14
|
+
const clickedItemData = $item('#dynamicDataset').getCurrentItem();
|
|
15
|
+
console.log("clickedItemData: ",clickedItemData);
|
|
16
|
+
location.to(`/board-people/${clickedItemData['link-board-people-title_fld']}`);
|
|
17
|
+
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
_$w('#executivesRepeaterItem').onClick((event) => {
|
|
21
|
+
const $item = _$w.at(event.context);
|
|
22
|
+
const clickedItemData = $item('#dataset1').getCurrentItem();
|
|
23
|
+
console.log("clickedItemData: ",clickedItemData);
|
|
24
|
+
location.to(`/board-people/${clickedItemData['link-board-people-title_fld']}`);
|
|
25
|
+
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
module.exports = {
|
|
29
|
+
boardPeoplePageOnReady,
|
|
30
|
+
};
|
|
@@ -260,8 +260,13 @@ async function loadJobsRepeater(_$w) {
|
|
|
260
260
|
updateOptionsUI(_$w,field.title, field._id, ''); // no search query
|
|
261
261
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
|
|
262
262
|
_$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
|
|
263
|
+
console.log("i am here !!!!!")
|
|
264
|
+
console.log("field.title: ",field.title)
|
|
265
|
+
console.log("value: ",value)
|
|
263
266
|
dontUpdateThisCheckBox=field._id;
|
|
264
267
|
const selected = ev.target.value; // array of selected value IDs
|
|
268
|
+
console.log("ev: ",ev)
|
|
269
|
+
console.log("ev.target: ",ev.target)
|
|
265
270
|
if (selected && selected.length) {
|
|
266
271
|
selectedByField.set(field._id, selected);
|
|
267
272
|
} else {
|