rem: if (enable) { if (okButton.getAttribute("disabled")) { okButton.removeAttribute("disabled"); } } else { if (!okButton.getAttribute("disabled")) { okButton.setAttribute("disabled","true"); } } 
add: okButton.disabled = !enable; 
context: function doEnabling() {  // Maybe add check if textInput.value would resolve to an existing  // file or directory in .modeOpen. Too costly I think.  var enable = (textInput.value != "");  if (enable) {    if (okButton.getAttribute("disabled")) {      okButton.removeAttribute("disabled");    }  } else {    if (!okButton.getAttribute("disabled")) {      okButton.setAttribute("disabled","true");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2649093d4c00ebe595189f55b83dcba97d05cb00/filepicker.js/clean/xpfe/components/filepicker/res/content/filepicker.js