summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2005-10-20 11:15:40 +0200
committerbugreport%peshkin.net <>2005-10-20 11:15:40 +0200
commit6d4505ccf740f740fd4f3ffa438316f0b81a61c0 (patch)
tree4b08e554d7ba35867f087a7570afdea1a3a2091f /template/en/default
parentc9e867f7b1b01aff688df7fcb7c37f48cf8a39ca (diff)
downloadbugzilla-6d4505ccf740f740fd4f3ffa438316f0b81a61c0.tar.gz
bugzilla-6d4505ccf740f740fd4f3ffa438316f0b81a61c0.tar.xz
Bug 313069 Fix javascript error when editing attachments
Patch by Erik Stambaugh <erik@dasbistro.com> r=joel, a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/attachment/edit.html.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 7addd3278..65dd5092e 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -184,11 +184,11 @@
var small = document.getElementById('smallCommentFrame');
var big = document.getElementById('editFrame');
- if ( small.style.display == 'none' )
+ if ( (small) && (small.style.display == 'none') )
{
small.parentNode.removeChild(small);
}
- if ( big.style.display == 'none' )
+ if ( (big) && (big.style.display == 'none') )
{
big.parentNode.removeChild(big);
}