sr-npm 1.7.1271 → 1.7.1273
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
|
@@ -40,6 +40,7 @@ let keywordAllJobs; // all jobs that are displayed in the jobs repeater when the
|
|
|
40
40
|
let ActivateURLOnchange=true; // whether to activate the url onchange
|
|
41
41
|
let considerAllJobs=false; // whether to consider all jobs or not
|
|
42
42
|
let urlOnchangeIsActive=false
|
|
43
|
+
let pageIsRemoved=false
|
|
43
44
|
const pagination = {
|
|
44
45
|
pageSize: 10,
|
|
45
46
|
currentPage: 1,
|
|
@@ -75,10 +76,23 @@ async function handleBackAndForth(_$w){
|
|
|
75
76
|
if(ActivateURLOnchange) {
|
|
76
77
|
const newQueryParams=await location.query();
|
|
77
78
|
console.log("newQueryParams: ", newQueryParams);
|
|
79
|
+
if(newQueryParams.page)
|
|
80
|
+
{
|
|
81
|
+
pageIsRemoved=false;
|
|
82
|
+
}
|
|
83
|
+
else
|
|
84
|
+
{
|
|
85
|
+
pageIsRemoved=true;
|
|
86
|
+
}
|
|
78
87
|
ActivateURLOnchange=false;
|
|
79
88
|
await clearAll(_$w,true);
|
|
80
89
|
await handleUrlParams(_$w,newQueryParams,true);
|
|
81
90
|
ActivateURLOnchange=true;
|
|
91
|
+
if(pageIsRemoved)
|
|
92
|
+
{
|
|
93
|
+
handlePaginationButtons(_$w);
|
|
94
|
+
pageIsRemoved=false;
|
|
95
|
+
}
|
|
82
96
|
|
|
83
97
|
|
|
84
98
|
}
|
|
@@ -285,7 +299,8 @@ async function handleParams(_$w,param,values) {
|
|
|
285
299
|
const currentQueryParams=await location.query();
|
|
286
300
|
if(currentQueryParams.page)
|
|
287
301
|
{
|
|
288
|
-
queryParams.remove(["page"]);
|
|
302
|
+
//queryParams.remove(["page"]);
|
|
303
|
+
queryParams.add({ page: 1 });
|
|
289
304
|
}
|
|
290
305
|
const fieldId = itemData.fieldId;
|
|
291
306
|
const valueId = itemData.valueId;
|
|
@@ -413,7 +428,9 @@ async function loadJobsRepeater(_$w) {
|
|
|
413
428
|
const currentQueryParams=await location.query();
|
|
414
429
|
if(currentQueryParams.page)
|
|
415
430
|
{
|
|
416
|
-
|
|
431
|
+
//try instead of removing to add page = 1
|
|
432
|
+
//queryParams.remove(["page"]);
|
|
433
|
+
queryParams.add({ page: 1 });
|
|
417
434
|
}
|
|
418
435
|
dontUpdateThisCheckBox=field._id;
|
|
419
436
|
const selected = ev.target.value; // array of selected value IDs
|