summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/create/create.html.tmpl15
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>