Commit 6d4505cc authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 313069 Fix javascript error when editing attachments

Patch by Erik Stambaugh <erik@dasbistro.com> r=joel, a=justdave
parent c9e867f7
...@@ -184,11 +184,11 @@ ...@@ -184,11 +184,11 @@
var small = document.getElementById('smallCommentFrame'); var small = document.getElementById('smallCommentFrame');
var big = document.getElementById('editFrame'); var big = document.getElementById('editFrame');
if ( small.style.display == 'none' ) if ( (small) && (small.style.display == 'none') )
{ {
small.parentNode.removeChild(small); small.parentNode.removeChild(small);
} }
if ( big.style.display == 'none' ) if ( (big) && (big.style.display == 'none') )
{ {
big.parentNode.removeChild(big); big.parentNode.removeChild(big);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment