1 Commits
v1.20 ... v1.21

Author SHA1 Message Date
Bel LaPointe
46e79c0571 do not wrap button with anchor for edit and del 2021-09-03 19:23:45 -06:00
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -66,8 +66,8 @@ func htmlEdit(w http.ResponseWriter, baseHREF string) {
if config.ReadOnly { if config.ReadOnly {
return return
} }
fmt.Fprintf(w, `<div style='display:inline-block'> fmt.Fprintf(w, `<div style='display:inline-block; margin-top: .75em; margin-bottom: .75em;'>
<a href=%q><input type="button" value="Edit"></input></a> <a href=%q class="button">Edit</a>
</div><br>`, path.Join("/edit/", baseHREF)) </div><br>`, path.Join("/edit/", baseHREF))
} }
@@ -75,8 +75,8 @@ func htmlDelete(w http.ResponseWriter, baseHREF string) {
if config.ReadOnly { if config.ReadOnly {
return return
} }
fmt.Fprintf(w, `<div style='display:inline-block'> fmt.Fprintf(w, `<div style='display:inline-block; margin-top: .75em; margin-bottom: .75em;'>
<a href=%q><input type="button" value="Delete" onclick="return confirm('Delete?');"></input></a> <a href=%q class="button" onclick="return confirm('Delete?');">Delete</a>
</div><br>`, path.Join("/delete/", baseHREF)) </div><br>`, path.Join("/delete/", baseHREF))
} }