Skip to content

Commit

Permalink
fix tab pagination issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSenturk committed Jun 1, 2023
1 parent 1a2c711 commit 094537c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resources/assets/js/mixins/global.js
Expand Up @@ -469,6 +469,9 @@ export default {
onChangePaginationLimit(event) {
let path = '';

let split_href = window.location.href.split('#');
let href = split_href[0];

if (window.location.search.length) {
if (window.location.search.includes('limit')) {
let queries = [];
Expand Down Expand Up @@ -496,10 +499,14 @@ export default {
});

} else {
path = window.location.href + '&limit=' + event.target.getAttribute("value");
path = href + '&limit=' + event.target.getAttribute("value");
}
} else {
path = window.location.href + '?limit=' + event.target.getAttribute("value");
path = href + '?limit=' + event.target.getAttribute("value");
}

if (split_href[1]) {
path += '#' + split_href[1];
}

window.location.href = path;
Expand Down

0 comments on commit 094537c

Please sign in to comment.