From 390dd606548cb74d99febfb32b7bc3a37fd85f3b Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 11 Jan 2017 14:15:49 -0800 Subject: fixing js block bug --- management/editor/editor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/editor/editor.go b/management/editor/editor.go index 0e36e86..f71bdaf 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -157,7 +157,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { if (id.val() === '-1' || form.attr('action') !== '/admin/edit') { del.hide(); external.hide(); - if (hiddenInput.parent().hasClass('input-field')) + if (hiddenInput.parent().hasClass('input-field')) { hiddenInput.parent().hide(); } } @@ -171,7 +171,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { if (form.attr('action') === '/admin/addon') { timestamp.hide(); slug.hide(); - if (hiddenInput.parent().hasClass('input-field')) + if (hiddenInput.parent().hasClass('input-field')) { hiddenInput.parent().hide(); } } -- cgit v1.2.3