From 6592723e12869b3d10994c30f2fa521a62638a8f Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Thu, 20 Oct 2005 09:17:27 +0000 Subject: [PATCH] Bug 313069 Fix javascript error when editing attachments Patch by Erik Stambaugh r=joel, a=justdave --- template/en/default/attachment/edit.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.47.2