diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-02 02:17:53 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-02 02:17:53 -0700 |
commit | c2cf55f3d10cfc675dd90f81361234152e2b2f92 (patch) | |
tree | a28b4829ddafff8cd6382513f6188bbf28c25467 | |
parent | 2adad11189f2df2d39ac80ec5fe6bd88794d231e (diff) |
adding catch for pending status to apply a new query string to save form action
-rw-r--r-- | management/editor/editor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index 1d04970..2cfe1ea 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -139,7 +139,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { save.on('click', function(e) { e.preventDefault(); - if (getPatam('status') === 'pending') { + if (getParam('status') === 'pending') { var action = form.attr('action'); form.attr('action', action + '?status=pending') } |