summaryrefslogtreecommitdiff
path: root/management/editor
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-17 08:57:17 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-17 08:57:17 -0800
commitd549b0288af68c54a82a4ccebfa5389ce2bee9e2 (patch)
tree9bab783a75adf8d0e014e44de928b586dbc2b047 /management/editor
parentaebdb6778967aec0f05fe7c4da3863c3778907d6 (diff)
adding admin UI fixes
Diffstat (limited to 'management/editor')
-rw-r--r--management/editor/editor.go7
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) {