diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-17 08:57:39 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-17 08:57:39 -0800 |
commit | 3c5a7f8020eeebb50a94c0c997dfd7404b1afabc (patch) | |
tree | 9bab783a75adf8d0e014e44de928b586dbc2b047 /management/editor/editor.go | |
parent | 47af661d5b85c8aaaf8491a08896e3d5fc3f4ec6 (diff) | |
parent | d549b0288af68c54a82a4ccebfa5389ce2bee9e2 (diff) |
Merge branch 'ponzu-dev'
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r-- | management/editor/editor.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index d1b169e..a9a8c82 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -150,14 +150,12 @@ func Form(post Editable, fields ...Field) ([]byte, error) { external = form.find('.post-controls.external'), id = form.find('input[name=id]'), timestamp = $('.__ponzu.content-only'), - slug = $('input[name=slug]'), - hiddenInput = $('input[type=hidden]'); + slug = $('input[name=slug]'); // hide if this is a new post, or a non-post editor page if (id.val() === '-1' || form.attr('action') !== '/admin/edit') { del.hide(); external.hide(); - hiddenInput.parent().filter('.input-field').hide() } // hide approval if not on a pending content item @@ -165,11 +163,10 @@ func Form(post Editable, fields ...Field) ([]byte, error) { external.hide(); } - // no timestamp, slug or hidden input parents visible on addons + // no timestamp, slug visible on addons if (form.attr('action') === '/admin/addon') { timestamp.hide(); slug.parent().hide(); - hiddenInput.parent().filter('.input-field').hide() } save.on('click', function(e) { |