]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 313069 Fix javascript error when editing attachments
authorbugreport%peshkin.net <>
Thu, 20 Oct 2005 09:17:27 +0000 (09:17 +0000)
committerbugreport%peshkin.net <>
Thu, 20 Oct 2005 09:17:27 +0000 (09:17 +0000)
Patch by Erik Stambaugh <erik@dasbistro.com>
r=joel, a=justdave

template/en/default/attachment/edit.html.tmpl

index e46d5e552d1ad934dca37224ddec896c2007019f..3bc802a3a898b12cde514393426a5ab17e595508 100644 (file)
 
     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);
     }