From 7a6b9817cca361a683b8be04c0f54395d2c62d87 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" Date: Wed, 7 Nov 2001 14:58:56 +0000 Subject: [PATCH] Bug 108547 - Make the JavaScript use proper DOM Patch by Christopher Aillon r= timeless@bemail.org, kiko@async.com.br git-svn-id: svn://10.0.0.236/trunk@107604 18797224-902f-48f8-a5cc-f745e15eee43 --- .../template/default/attachment/edit.atml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/mozilla/webtools/bugzilla/template/default/attachment/edit.atml b/mozilla/webtools/bugzilla/template/default/attachment/edit.atml index ac9f327d032..ee6d005e7a3 100755 --- a/mozilla/webtools/bugzilla/template/default/attachment/edit.atml +++ b/mozilla/webtools/bugzilla/template/default/attachment/edit.atml @@ -160,18 +160,18 @@ function hideElementById(id) { var elm = document.getElementById(id); - if (!elm) return; - - elm.style.setProperty('display', 'none', ''); + if (elm) { + elm.style.display = 'none'; + } } function showElementById(id, val) { var elm = document.getElementById(id); - if (!elm) return; - - if (!val) val = 'inline'; - elm.style.setProperty('display', val, ''); + if (elm) { + if (!val) val = 'inline'; + elm.style.display = val; + } } function normalizeComments() @@ -181,15 +181,14 @@ var small = document.getElementById('smallCommentFrame'); var big = document.getElementById('editFrame'); - if ( small.style.getProperty('display') == 'none' ) + if ( small.style.display == 'none' ) { small.parentNode.removeChild(small); } - if ( big.style.getProperty('display') == 'none' ) + if ( big.style.display == 'none' ) { big.parentNode.removeChild(big); } - }