diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-27 11:18:43 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-27 11:18:43 -0600 |
commit | 8690226ec041c28a21cb5267b69632ecc280a089 (patch) | |
tree | 53bcc1297efb6f0f6f48c7143b9ee5315f68824c /static/js/paginator.js | |
parent | 1a306a0a6c714242c97e0db45adb0c8af0dada4a (diff) |
Improve coments pagination
Diffstat (limited to 'static/js/paginator.js')
-rw-r--r-- | static/js/paginator.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/static/js/paginator.js b/static/js/paginator.js deleted file mode 100644 index 9a7ed65..0000000 --- a/static/js/paginator.js +++ /dev/null @@ -1,15 +0,0 @@ -export class Paginator { - constructor(host, context, path) { - this.endpoint = `${host}${context}?path=${path}`; - } - - populatePageAnchors() { - const pagination_widget = document.querySelector(".pagination"); - var anchors = pagination_widget.querySelectorAll('a'); - - for(let anchor of anchors) { - var page = /\d/.exec(anchor.id)[0]; - anchor.setAttribute("href", `${this.endpoint}&page=${page}`); - } - } -}
\ No newline at end of file |