sr-npm 1.7.693 → 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.
@@ -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.695",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,6 +36,7 @@ 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).toString();
39
40
  pagination.currentPage++;
40
41
  console.log("next page ", pagination.currentPage);
41
42
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
@@ -47,6 +48,7 @@ async function loadPaginationButtons(_$w) {
47
48
  console.log("current page: ", pagination.currentPage);
48
49
  let previousPageJobs=currentJobs.slice(pagination.pageSize*(pagination.currentPage-1),pagination.pageSize*pagination.currentPage);
49
50
  pagination.currentPage--;
51
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationCurrentText).text = (pagination.pageSize*pagination.currentPage).toString();
50
52
  console.log("previous page ", pagination.currentPage);
51
53
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
52
54
  handlePaginationButtons(_$w);
@@ -121,7 +123,7 @@ async function loadJobsRepeater(_$w) {
121
123
 
122
124
  function updateTotalJobsCountText(_$w) {
123
125
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.TotalJobsCountText).text = `${currentJobs.length} Jobs`;
124
-
126
+ _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.paginationTotalCountText).text = currentJobs.length.toString();
125
127
  }
126
128
 
127
129
  async function loadFilters(_$w) {