summaryrefslogtreecommitdiff
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
parentaebdb6778967aec0f05fe7c4da3863c3778907d6 (diff)
adding admin UI fixes
-rw-r--r--management/editor/editor.go7
-rw-r--r--system/admin/static/dashboard/css/admin.css3
2 files changed, 4 insertions, 6 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) {
diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css
index a977afb..204a4e9 100644
--- a/system/admin/static/dashboard/css/admin.css
+++ b/system/admin/static/dashboard/css/admin.css
@@ -242,8 +242,9 @@ tr.default-fields, tr.editor-fields {
select {
border: 1px solid #e2e2e2;
+ height: 2.5rem;
}
.note-editor * {
max-width: 100%;
-} \ No newline at end of file
+}