diff options
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/create/create-guided.html.tmpl | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 5cc9df64f..4c087c637 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -29,13 +29,12 @@ var descriptions = [ ]; function PutDescription() { - if ((document.getElementById) && (document.body.innerHTML)) { - var componentIndex = document.getElementById('component').selectedIndex; - if (componentIndex != -1) { - var description = document.getElementById('description'); - description.innerHTML = descriptions[componentIndex]; - } - } + var description = document.getElementById('description'); + var componentIndex = document.getElementById('component').selectedIndex; + YAHOO.util.Dom.removeClass("description", "bz_default_hidden"); + if (componentIndex != -1) { + description.innerHTML = descriptions[componentIndex]; + } } </script> @@ -130,12 +129,8 @@ function PutDescription() { [% END %] </select> - <div id="description" class="comment"> - <script type="text/javascript"> - if ((document.getElementById) && (document.body.innerHTML)) { - document.write("Select a component to see its description here."); - } - </script> + <div id="description" class="comment bz_default_hidden"> + Select a component to see its description here. </div> <p> |