From 8690226ec041c28a21cb5267b69632ecc280a089 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 27 Feb 2024 11:18:43 -0600 Subject: Improve coments pagination --- static/js/paginator.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 static/js/paginator.js (limited to 'static/js/paginator.js') 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 -- cgit v1.2.3