Bug 313069 Fix javascript error when editing attachments

Patch by Erik Stambaugh <erik@dasbistro.com>
r=joel, a=justdave
This commit is contained in:
bugreport%peshkin.net 2005-10-20 02:15:40 +00:00
Родитель 6363bfa210
Коммит 968779263b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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