diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 22:52:02 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 22:52:02 -0700 |
commit | 430eb465773057a263f8e37ea1977a1425b3f574 (patch) | |
tree | b27ebd40405423441922781f6e0be0a0f166c6f2 /system/admin/config/config.go | |
parent | 2bf70919c33fd38c8cf6eb468179fd6c5fe114d9 (diff) |
removing elements from form if not necessary
Diffstat (limited to 'system/admin/config/config.go')
-rw-r--r-- | system/admin/config/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
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'); |