sr-npm 1.7.694 → 1.7.695

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.694",
3
+ "version": "1.7.695",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,12 +36,10 @@ async function loadPaginationButtons(_$w) {
36
36
  console.log("next page button clicked");
37
37
  console.log("current page: ", pagination.currentPage);
38
38
  let nextPageJobs=currentJobs.slice(pagination.pageSize*pagination.currentPage,pagination.pageSize*(pagination.currentPage+1));
39
- _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = nextPageJobs.length+pagination.pageSize*pagination.currentPage;
39
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = (nextPageJobs.length+pagination.pageSize*pagination.currentPage).toString();
40
40
  pagination.currentPage++;
41
41
  console.log("next page ", pagination.currentPage);
42
42
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
43
-
44
-
45
43
  handlePaginationButtons(_$w);
46
44
  });
47
45
 
@@ -50,10 +48,9 @@ async function loadPaginationButtons(_$w) {
50
48
  console.log("current page: ", pagination.currentPage);
51
49
  let previousPageJobs=currentJobs.slice(pagination.pageSize*(pagination.currentPage-1),pagination.pageSize*pagination.currentPage);
52
50
  pagination.currentPage--;
53
- _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = pagination.pageSize*pagination.currentPage;
51
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = (pagination.pageSize*pagination.currentPage).toString();
54
52
  console.log("previous page ", pagination.currentPage);
55
53
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
56
-
57
54
  handlePaginationButtons(_$w);
58
55
  });
59
56
  }
@@ -126,7 +123,7 @@ async function loadJobsRepeater(_$w) {
126
123
 
127
124
  function updateTotalJobsCountText(_$w) {
128
125
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.TotalJobsCountText).text = `${currentJobs.length} Jobs`;
129
- _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = currentJobs.length
126
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = currentJobs.length.toString();
130
127
  }
131
128
 
132
129
  async function loadFilters(_$w) {