From 3ec97f951e9f8f4970313b5d7a2662b25895bd2e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Mar 2011 19:00:17 +0000 Subject: [PATCH] Possible values label not hidden on custom field form. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5266 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/_form.rhtml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml index d34c756d3..8cbd90371 100644 --- a/app/views/custom_fields/_form.rhtml +++ b/app/views/custom_fields/_form.rhtml @@ -18,33 +18,33 @@ function toggle_custom_field_format() { Element.hide(p_length.parentNode); Element.hide(p_regexp.parentNode); if (p_searchable) Element.show(p_searchable.parentNode); - Element.show(p_values); + Element.show(p_values.parentNode); break; case "bool": p_default.setAttribute('type','checkbox'); Element.hide(p_length.parentNode); Element.hide(p_regexp.parentNode); if (p_searchable) Element.hide(p_searchable.parentNode); - Element.hide(p_values); + Element.hide(p_values.parentNode); break; case "date": Element.hide(p_length.parentNode); Element.hide(p_regexp.parentNode); if (p_searchable) Element.hide(p_searchable.parentNode); - Element.hide(p_values); + Element.hide(p_values.parentNode); break; case "float": case "int": Element.show(p_length.parentNode); Element.show(p_regexp.parentNode); if (p_searchable) Element.hide(p_searchable.parentNode); - Element.hide(p_values); + Element.hide(p_values.parentNode); break; default: Element.show(p_length.parentNode); Element.show(p_regexp.parentNode); if (p_searchable) Element.show(p_searchable.parentNode); - Element.hide(p_values); + Element.hide(p_values.parentNode); break; } }