default to 0 page when go button is pressed

This commit is contained in:
Antoni Sawicki 2019-05-31 17:49:14 -07:00
parent ea738f206a
commit 61b84116b1

2
wrp.go
View File

@ -55,6 +55,8 @@ func pageServer(out http.ResponseWriter, r *http.Request) {
p++
} else if r.FormValue("pg") == "<<" {
p--
} else {
p = 0
}
w, _ := strconv.ParseInt(r.FormValue("w"), 10, 64)
if w < 10 {