From 430eb465773057a263f8e37ea1977a1425b3f574 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 18 Oct 2016 22:52:02 -0700 Subject: removing elements from form if not necessary --- management/editor/editor.go | 4 ++-- system/admin/config/config.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/management/editor/editor.go b/management/editor/editor.go index d069047..3b26adb 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -52,7 +52,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { editor.ViewBuf.Write([]byte(``)) publishTime := ` -
+
diff --git a/system/admin/config/config.go b/system/admin/config/config.go index c5ef1cd..c83c311 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -97,6 +97,10 @@ func (c *Config) MarshalEditor() ([]byte, error) { right: '0px' }); + var contentOnly = $('.content-only.__ponzu'); + contentOnly.hide(); + contentOnly.find('input, textarea, select').attr('name', ''); + // adjust layout of td so save button is in same location as usual fields.find('td').css('float', 'right'); -- cgit v1.2.3