From c7f764eec0011e2e84148f1169eb913f2e8da8e6 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" Date: Thu, 20 Oct 2005 02:17:27 +0000 Subject: [PATCH] Bug 313069 Fix javascript error when editing attachments Patch by Erik Stambaugh r=joel, a=justdave git-svn-id: svn://10.0.0.236/trunk@182573 18797224-902f-48f8-a5cc-f745e15eee43 --- .../bugzilla/template/en/default/attachment/edit.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl index 7addd3278ac..65dd5092e8e 100644 --- a/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl +++ b/mozilla/webtools/bugzilla/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); }