Bug 313069 Fix javascript error when editing attachments

Patch by Erik Stambaugh <erik@dasbistro.com>
r=joel, a=justdave


git-svn-id: svn://10.0.0.236/trunk@182573 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2005-10-20 02:17:27 +00:00
parent d9c1569e4c
commit c7f764eec0

View File

@@ -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);
}