rem: if ( sidebarSearchText.value == "" ) {  if ( !searchButton.getAttribute("disabled") ) searchButton.setAttribute("disabled","true"); } else { if ( searchButton.getAttribute("disabled") == "true") { searchButton.removeAttribute("disabled"); } } 
add: if (!sidebarSearchText.value) {  if (!searchButton.disabled) searchButton.disabled = true; } else if (searchButton.disabled) searchButton.disabled = false; 
context: function doEnabling(){	var searchButton = document.getElementById("searchbutton");	var sidebarSearchText = document.getElementById("sidebar-search-text");    if ( sidebarSearchText.value == "" )     {        // No input, disable search button if enabled.        if ( !searchButton.getAttribute("disabled") )        searchButton.setAttribute("disabled","true");    }    else    {        if ( searchButton.getAttribute("disabled") == "true")        {            searchButton.removeAttribute("disabled");        }    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b1aee567a0f51e2787da9cdf81da6237e2f6b153/search-panel.js/clean/xpfe/components/search/resources/search-panel.js