From 0235cdcb4ef0b476b3bda50566a0f1ee215c601c Mon Sep 17 00:00:00 2001 From: wes Date: Thu, 31 Aug 2017 00:07:51 -0400 Subject: [PATCH] make sure the page number is tracked for browsing --- src/scripts/app.tag | 1 + src/scripts/browse.tag | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/scripts/app.tag b/src/scripts/app.tag index 4b0e62a..ad102d7 100644 --- a/src/scripts/app.tag +++ b/src/scripts/app.tag @@ -130,6 +130,7 @@ document.addEventListener("click", function(event) { }); self.state = { + "pagenum" : 0, /* the current page of posts in the browse tab */ "browsed" : false, /* was a link clicked to a post yet? */ "page" : self.opts.page, "results" : self.decode(self.opts.results), diff --git a/src/scripts/browse.tag b/src/scripts/browse.tag index eafd210..9510466 100644 --- a/src/scripts/browse.tag +++ b/src/scripts/browse.tag @@ -37,7 +37,7 @@