sync js with backend
This commit is contained in:
parent
c20f7e7eff
commit
a6a8609735
|
@ -112,7 +112,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
{{ 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>
|
||||
|
|
|
@ -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}))
|
||||
|
|
Loading…
Reference in New Issue