From: bugreport%peshkin.net <> Date: Thu, 20 Oct 2005 09:15:40 +0000 (+0000) Subject: Bug 313069 Fix javascript error when editing attachments X-Git-Tag: bugzilla-2.22rc1~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4505ccf740f740fd4f3ffa438316f0b81a61c0;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 7addd3278a..65dd5092e8 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); }