Commits

Joe Bogner committed 5ba65e8

add ability to delete

Comments (0)

Files changed (1)

 {{/next}}
 {{#loggedin}}
 <br>
+<form id="frm" action="!article-delete" method="post">
+<input type="hidden" name="*ID" value="{{.}}">
+</form>
 <a href="/!article-edit?{{.}}">edit</a> 
+<a href="#delete" id="Delete" data-Key="{{.}}">delete</a> 
+<script>
+	document.getElementById("Delete").onclick = function() {
+		if (confirm("Are you sure wish to delete this record")) {
+			document.getElementById("frm").submit();	
+		}
+	};
+</script>
 {{/loggedin}}