From: bugreport%peshkin.net <> Date: Thu, 20 Oct 2005 09:17:27 +0000 (+0000) Subject: Bug 313069 Fix javascript error when editing attachments X-Git-Tag: bugzilla-2.20.1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6592723e12869b3d10994c30f2fa521a62638a8f;p=thirdparty%2Fbugzilla.git Bug 313069 Fix javascript error when editing attachments Patch by Erik Stambaugh r=joel, a=justdave --- diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index e46d5e552d..3bc802a3a8 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); }