diff options
author | Byron Jones <glob@mozilla.com> | 2011-11-07 22:14:30 +0100 |
---|---|---|
committer | Dave Lawrence <dkl@mozilla.com> | 2011-11-07 22:14:30 +0100 |
commit | 81dea43722a6d396676a1c3f59433f8076c31fb5 (patch) | |
tree | 077095961d7120267a87b54586723de6b1d8b7ce /template | |
parent | 05d293a0a3f45fc53fcbb9c46e10cd09f8329034 (diff) | |
download | bugzilla-81dea43722a6d396676a1c3f59433f8076c31fb5.tar.gz bugzilla-81dea43722a6d396676a1c3f59433f8076c31fb5.tar.xz |
Bug 698430: honour crash-signature when on enter_bug's query-string
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 15 |
1 files changed, 10 insertions, 5 deletions
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'); (<a id="cf_crash_signature_action" href="#">edit</a>) </span> <span id="cf_crash_signature_input"> - <textarea id="cf_crash_signature" name="cf_crash_signature" rows="4" cols="60"></textarea> + <textarea id="cf_crash_signature" name="cf_crash_signature" rows="4" cols="60" + >[% cf_crash_signature FILTER html %]</textarea> </span> </td> </tr> |