summaryrefslogtreecommitdiff
path: root/management/editor/editor.go
diff options
context:
space:
mode:
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r--management/editor/editor.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index 66a0a7d..0e36e86 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -157,7 +157,9 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
if (id.val() === '-1' || form.attr('action') !== '/admin/edit') {
del.hide();
external.hide();
- hiddenInput.parent().hide();
+ if (hiddenInput.parent().hasClass('input-field'))
+ hiddenInput.parent().hide();
+ }
}
// hide approval if not on a pending content item
@@ -169,7 +171,9 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
if (form.attr('action') === '/admin/addon') {
timestamp.hide();
slug.hide();
- hiddenInput.parent().hide();
+ if (hiddenInput.parent().hasClass('input-field'))
+ hiddenInput.parent().hide();
+ }
}
save.on('click', function(e) {