sr-npm 1.7.693 → 1.7.694

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.
@@ -14,6 +14,8 @@ const CAREERS_MULTI_BOXES_PAGE_CONSTS={
14
14
  CLEAR_ALL_BUTTON_ID: '#clearAllButton',
15
15
  PAGE_BUTTON_NEXT: '#nextPageButton',
16
16
  PAGE_BUTTON_PREVIOUS: '#previousPageButton',
17
+ paginationCurrentText: '#paginationCurrent',
18
+ paginationTotalCountText: '#paginationTotalCount',
17
19
  }
18
20
 
19
21
  const FiltersIds={
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.693",
3
+ "version": "1.7.694",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,9 +36,12 @@ 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
40
  pagination.currentPage++;
40
41
  console.log("next page ", pagination.currentPage);
41
42
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
43
+
44
+
42
45
  handlePaginationButtons(_$w);
43
46
  });
44
47
 
@@ -47,8 +50,10 @@ async function loadPaginationButtons(_$w) {
47
50
  console.log("current page: ", pagination.currentPage);
48
51
  let previousPageJobs=currentJobs.slice(pagination.pageSize*(pagination.currentPage-1),pagination.pageSize*pagination.currentPage);
49
52
  pagination.currentPage--;
53
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = pagination.pageSize*pagination.currentPage;
50
54
  console.log("previous page ", pagination.currentPage);
51
55
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
56
+
52
57
  handlePaginationButtons(_$w);
53
58
  });
54
59
  }
@@ -121,7 +126,7 @@ async function loadJobsRepeater(_$w) {
121
126
 
122
127
  function updateTotalJobsCountText(_$w) {
123
128
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.TotalJobsCountText).text = `${currentJobs.length} Jobs`;
124
-
129
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = currentJobs.length
125
130
  }
126
131
 
127
132
  async function loadFilters(_$w) {