From d5224f0d9c794953a6bb5bb264e856cccc4eb046 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2005 05:39:55 +0100 Subject: miscellaneous MSIE compatibility fixes --- functions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index 540d7b89c..5f8b2425f 100644 --- a/functions.js +++ b/functions.js @@ -240,7 +240,11 @@ function disableContainerChildren(id, disable, doc) { for (var i = 0; i < container.childNodes.length; i++) { var child = container.childNodes[i]; - child.disabled = disable; + try { + child.disabled = disable; + } catch (E) { + + } if (disable) { if (child.className && child.className.match("button")) { @@ -250,7 +254,7 @@ function disableContainerChildren(id, disable, doc) { if (child.className && child.className.match("disabledButton")) { child.className = "button"; } - } + } } } -- cgit v1.2.3-54-g00ecf