sr-npm 1.7.1270 → 1.7.1272
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
|
@@ -282,6 +282,12 @@ async function handleParams(_$w,param,values) {
|
|
|
282
282
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.SELECTED_VALUES_REPEATER_ITEM_LABEL).text = itemData.label || '';
|
|
283
283
|
// Deselect this value from both the selected map and the multibox
|
|
284
284
|
$item(CAREERS_MULTI_BOXES_PAGE_CONSTS.DESELECT_BUTTON_ID).onClick(async () => {
|
|
285
|
+
const currentQueryParams=await location.query();
|
|
286
|
+
if(currentQueryParams.page)
|
|
287
|
+
{
|
|
288
|
+
//queryParams.remove(["page"]);
|
|
289
|
+
queryParams.add({ page: 1 });
|
|
290
|
+
}
|
|
285
291
|
const fieldId = itemData.fieldId;
|
|
286
292
|
const valueId = itemData.valueId;
|
|
287
293
|
dontUpdateThisCheckBox=fieldId;
|
|
@@ -405,6 +411,13 @@ async function loadJobsRepeater(_$w) {
|
|
|
405
411
|
|
|
406
412
|
_$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
|
|
407
413
|
_$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
|
|
414
|
+
const currentQueryParams=await location.query();
|
|
415
|
+
if(currentQueryParams.page)
|
|
416
|
+
{
|
|
417
|
+
//try instead of removing to add page = 1
|
|
418
|
+
//queryParams.remove(["page"]);
|
|
419
|
+
queryParams.add({ page: 1 });
|
|
420
|
+
}
|
|
408
421
|
dontUpdateThisCheckBox=field._id;
|
|
409
422
|
const selected = ev.target.value; // array of selected value IDs
|
|
410
423
|
let fieldTitle=field.title.toLowerCase().replace(' ', '');
|