sr-npm 1.7.1276 → 1.7.1278
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
|
@@ -73,10 +73,11 @@ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
async function handleBackAndForth(_$w){
|
|
76
|
-
|
|
76
|
+
if(ActivateURLOnchange) {
|
|
77
77
|
const newQueryParams=await location.query();
|
|
78
78
|
await clearAll(_$w,true);
|
|
79
79
|
await handleUrlParams(_$w,newQueryParams,true);
|
|
80
|
+
}
|
|
80
81
|
// if(ActivateURLOnchange) {
|
|
81
82
|
// const newQueryParams=await location.query();
|
|
82
83
|
// console.log("newQueryParams: ", newQueryParams);
|
|
@@ -228,6 +229,7 @@ async function handleUrlParams(_$w,urlParams,handleBackAndForth=false) {
|
|
|
228
229
|
const jobsFirstPage=currentJobs.slice(startSlicIndex,endSlicIndex);
|
|
229
230
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = jobsFirstPage;
|
|
230
231
|
handlePaginationButtons(_$w);
|
|
232
|
+
handlePageUrlParam();
|
|
231
233
|
|
|
232
234
|
}
|
|
233
235
|
} catch (error) {
|
|
@@ -278,6 +280,7 @@ async function handleParams(_$w,param,values) {
|
|
|
278
280
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = pagination.currentPage.toString();
|
|
279
281
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
|
|
280
282
|
handlePaginationButtons(_$w);
|
|
283
|
+
handlePageUrlParam();
|
|
281
284
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
|
|
282
285
|
});
|
|
283
286
|
|
|
@@ -287,6 +290,7 @@ async function handleParams(_$w,param,values) {
|
|
|
287
290
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = pagination.currentPage.toString();
|
|
288
291
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
|
|
289
292
|
handlePaginationButtons(_$w);
|
|
293
|
+
handlePageUrlParam();
|
|
290
294
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
|
|
291
295
|
});
|
|
292
296
|
} catch (error) {
|
|
@@ -380,6 +384,7 @@ async function loadJobsRepeater(_$w) {
|
|
|
380
384
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = Math.ceil(currentJobs.length/pagination.pageSize).toString();
|
|
381
385
|
updateTotalJobsCountText(_$w);
|
|
382
386
|
handlePaginationButtons(_$w);
|
|
387
|
+
handlePageUrlParam();
|
|
383
388
|
} catch (error) {
|
|
384
389
|
console.error('Failed to load jobs repeater:', error);
|
|
385
390
|
}
|
|
@@ -635,9 +640,11 @@ function getValueFromValueId(valueIds, value) {
|
|
|
635
640
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("searchResult");
|
|
636
641
|
pagination.currentPage=1;
|
|
637
642
|
}
|
|
643
|
+
handlePaginationButtons(_$w);
|
|
638
644
|
if(!urlOnchangeIsActive)
|
|
639
645
|
{
|
|
640
|
-
|
|
646
|
+
|
|
647
|
+
handlePageUrlParam();
|
|
641
648
|
}
|
|
642
649
|
|
|
643
650
|
}
|
|
@@ -645,7 +652,7 @@ function getValueFromValueId(valueIds, value) {
|
|
|
645
652
|
function handlePaginationButtons(_$w)
|
|
646
653
|
{
|
|
647
654
|
console.log("iamhere")
|
|
648
|
-
|
|
655
|
+
// handlePageUrlParam();
|
|
649
656
|
|
|
650
657
|
pagination.currentPage===1 || pagination.currentPage===0? _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PAGE_BUTTON_PREVIOUS).disable():_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PAGE_BUTTON_PREVIOUS).enable();
|
|
651
658
|
if(secondarySearchIsFilled) {
|
|
@@ -665,7 +672,7 @@ function handlePaginationButtons(_$w)
|
|
|
665
672
|
}
|
|
666
673
|
|
|
667
674
|
function handlePageUrlParam() {
|
|
668
|
-
|
|
675
|
+
ActivateURLOnchange=false;
|
|
669
676
|
if(pagination.currentPage==1 || pagination.currentPage==0)
|
|
670
677
|
{
|
|
671
678
|
queryParams.remove(["page"]);
|
|
@@ -673,6 +680,7 @@ function handlePageUrlParam() {
|
|
|
673
680
|
else{
|
|
674
681
|
queryParams.add({ page: pagination.currentPage });
|
|
675
682
|
}
|
|
683
|
+
ActivateURLOnchange=true;
|
|
676
684
|
}
|
|
677
685
|
async function refreshFacetCounts(_$w,clearAll=false) {
|
|
678
686
|
|
|
@@ -756,6 +764,7 @@ async function secondarySearch(_$w,query) {
|
|
|
756
764
|
secondarySearchIsFilled=true
|
|
757
765
|
}
|
|
758
766
|
handlePaginationButtons(_$w);
|
|
767
|
+
handlePageUrlParam();
|
|
759
768
|
updateTotalJobsCountText(_$w);
|
|
760
769
|
await refreshFacetCounts(_$w);
|
|
761
770
|
return allsecondarySearchJobs;
|