From da04d396e96bce7d2bbcb7386437d30e3ca95d28 Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Thu, 15 Jul 1999 23:09:06 +0000 Subject: [PATCH] Enable/disable customize button --- rdf/resources/customize.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rdf/resources/customize.js b/rdf/resources/customize.js index 08f5491248a..70cb144d0ec 100644 --- a/rdf/resources/customize.js +++ b/rdf/resources/customize.js @@ -173,14 +173,17 @@ function enableButtons() { down.setAttribute('disabled', ''); } // "Customize..." button - var customizeURL = ''; + var customizeURL = null; if (index != -1) { var option = list.childNodes.item(index); customizeURL = option.getAttribute('customize'); } - if (customizeURL == '') { + dump("customize="+customizeURL+"\n"); + if (customizeURL == 'null') { + dump("...so disable it\n"); customize.setAttribute('disabled','true'); } else { + dump("...enable\n"); customize.setAttribute('disabled',''); } }