sr-npm 1.7.1243 → 1.7.1246
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
|
@@ -523,11 +523,7 @@ function getValueFromValueId(valueIds, value) {
|
|
|
523
523
|
|
|
524
524
|
// Sort alphabetically by label
|
|
525
525
|
filtered.sort((a, b) => (a.label || '').localeCompare(b.label || ''));
|
|
526
|
-
// Preserve currently selected values that are still visible
|
|
527
|
-
// let prevSelected=[]
|
|
528
|
-
// clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;
|
|
529
526
|
const visibleSet = new Set(filtered.map(o => o.value));
|
|
530
|
-
//const preserved = prevSelected.filter(v => visibleSet.has(v));
|
|
531
527
|
if(filtered.length===0) {
|
|
532
528
|
_$w(`#${FiltersIds[fieldTitle]}MultiBox`).changeState(`${FiltersIds[fieldTitle]}NoResults`);
|
|
533
529
|
}
|
|
@@ -630,9 +626,8 @@ function handlePaginationButtons(_$w)
|
|
|
630
626
|
|
|
631
627
|
function handlePageUrlParam() {
|
|
632
628
|
ActivateURLOnchange=false;
|
|
633
|
-
if(pagination.currentPage==1)
|
|
629
|
+
if(pagination.currentPage==1 || pagination.currentPage==0)
|
|
634
630
|
{
|
|
635
|
-
|
|
636
631
|
queryParams.remove(["page"]);
|
|
637
632
|
}
|
|
638
633
|
else{
|
|
@@ -740,6 +735,7 @@ async function secondarySearch(_$w,query) {
|
|
|
740
735
|
}
|
|
741
736
|
|
|
742
737
|
|
|
738
|
+
|
|
743
739
|
module.exports = {
|
|
744
740
|
careersMultiBoxesPageOnReady,
|
|
745
741
|
secondarySearch
|