summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-13 10:37:53 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-13 10:37:53 -0700
commit0163196a4d7908f95c92faa7c7145753f0b5bdb1 (patch)
tree6ff13947677c0e424ecf5d3e51bf0f76ed0102a7
parent76dcbea5ccb24c0879a78eac62f481b783867309 (diff)
updating to not use reserved js keyword delete
-rw-r--r--management/editor/editor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 89b4c6b..01a30f9 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -54,9 +54,9 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
<script>
$(function() {
var form = $('form'),
- delete = form.find('button.delete-post');
+ del = form.find('button.delete-post');
- delete.on('click', function(e) {
+ del.on('click', function(e) {
e.preventDefault();
var action = form.attr('action');
action = action + '/delete';