sr-npm 1.7.1269 → 1.7.1270
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
|
@@ -39,7 +39,7 @@ let secondarySearchIsFilled=false // whether the secondary search is filled with
|
|
|
39
39
|
let keywordAllJobs; // all jobs that are displayed in the jobs repeater when the keyword is filled
|
|
40
40
|
let ActivateURLOnchange=true; // whether to activate the url onchange
|
|
41
41
|
let considerAllJobs=false; // whether to consider all jobs or not
|
|
42
|
-
let
|
|
42
|
+
let urlOnchangeIsActive=false
|
|
43
43
|
const pagination = {
|
|
44
44
|
pageSize: 10,
|
|
45
45
|
currentPage: 1,
|
|
@@ -48,7 +48,9 @@ const pagination = {
|
|
|
48
48
|
async function careersMultiBoxesPageOnReady(_$w,urlParams) {
|
|
49
49
|
//to handle back and forth , url changes
|
|
50
50
|
onChange(async ()=>{
|
|
51
|
-
|
|
51
|
+
urlOnchangeIsActive=true;
|
|
52
|
+
await handleBackAndForth(_$w);
|
|
53
|
+
urlOnchangeIsActive=false;
|
|
52
54
|
|
|
53
55
|
});
|
|
54
56
|
await loadData(_$w);
|
|
@@ -208,10 +210,6 @@ async function handleUrlParams(_$w,urlParams,handleBackAndForth=false) {
|
|
|
208
210
|
const jobsFirstPage=currentJobs.slice(startSlicIndex,endSlicIndex);
|
|
209
211
|
_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = jobsFirstPage;
|
|
210
212
|
handlePaginationButtons(_$w);
|
|
211
|
-
if(!ActivateURLOnchange)
|
|
212
|
-
{
|
|
213
|
-
finishedUrlOnChange=true;
|
|
214
|
-
}
|
|
215
213
|
|
|
216
214
|
}
|
|
217
215
|
} catch (error) {
|
|
@@ -606,12 +604,16 @@ function getValueFromValueId(valueIds, value) {
|
|
|
606
604
|
await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_MULTI_STATE_BOX).changeState("searchResult");
|
|
607
605
|
pagination.currentPage=1;
|
|
608
606
|
}
|
|
607
|
+
if(!urlOnchangeIsActive)
|
|
608
|
+
{
|
|
609
|
+
handlePaginationButtons(_$w);
|
|
610
|
+
}
|
|
609
611
|
|
|
610
|
-
handlePaginationButtons(_$w);
|
|
611
612
|
}
|
|
612
613
|
|
|
613
614
|
function handlePaginationButtons(_$w)
|
|
614
615
|
{
|
|
616
|
+
console.log("iamhere")
|
|
615
617
|
handlePageUrlParam();
|
|
616
618
|
|
|
617
619
|
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();
|