From 81dea43722a6d396676a1c3f59433f8076c31fb5 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 7 Nov 2011 16:14:30 -0500 Subject: Bug 698430: honour crash-signature when on enter_bug's query-string --- template/en/default/bug/create/create.html.tmpl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 6d67dfbcc..285be4bbc 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -48,15 +48,19 @@ function init() { hideElementById('attachment_true'); showElementById('attachment_false'); showElementById('btn_no_attachment'); - hideCrashSignatureField(); + initCrashSignatureField(); init_take_handler('[% user.login FILTER js %]'); } -function hideCrashSignatureField() { +function initCrashSignatureField() { var el = document.getElementById('cf_crash_signature'); if (!el) return; - hideEditableField('cf_crash_signature_container','cf_crash_signature_input', - 'cf_crash_signature_action', 'cf_crash_signature', ''); + [% IF cf_crash_signature.length %] + YAHOO.util.Dom.addClass('cf_crash_signature_container', 'bz_default_hidden'); + [% ELSE %] + hideEditableField('cf_crash_signature_container','cf_crash_signature_input', + 'cf_crash_signature_action', 'cf_crash_signature'); + [% END %] } var initialowners = new Array([% product.components.size %]); @@ -658,7 +662,8 @@ TUI_hide_default('attachment_text_field'); (edit) - + -- cgit v1.2.3-24-g4f1b