From 6d4505ccf740f740fd4f3ffa438316f0b81a61c0 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Thu, 20 Oct 2005 09:15:40 +0000 Subject: 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(-) (limited to 'template/en/default/attachment') 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); } -- cgit v1.2.3-24-g4f1b