sync js with backend
Ted Unangst tedu@tedunangst.com
Tue, 29 Oct 2019 19:18:16 -0400
2 files changed,
2 insertions(+),
1 deletions(-)
M
views/honk.html
→
views/honk.html
@@ -112,7 +112,7 @@ <button onclick="return flogit(this, 'unsave', '{{ .Honk.XID }}');">unsave</button>
{{ else }} <button onclick="return flogit(this, 'save', '{{ .Honk.XID }}');">save</button> {{ end }} -<button onclick="return flogit(this, 'desub', '{{ .Honk.XID }}');">untag</button> +<button onclick="return flogit(this, 'untag', '{{ .Honk.XID }}');">untag</button> <button><a href="/edit?xid={{ .Honk.XID }}">edit</a></button> </div> </details>
M
views/honkpage.js
→
views/honkpage.js
@@ -58,6 +58,7 @@ function flogit(el, how, xid) {
var s = how if (s[s.length-1] != "e") { s += "e" } s += "d" + if (s == "untaged") s = "untagged" el.innerHTML = s el.disabled = true post("/zonkit", encode({"CSRF": csrftoken, "wherefore": how, "what": xid}))