diff options
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r-- | template/en/default/attachment/edit.html.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 7addd3278..65dd5092e 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/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); } |