rem: var searchButton = document.getElementById("searchbutton"); var sidebarSearchText = document.getElementById("sidebar-search-text");  if (!sidebarSearchText.value) {  if (!searchButton.disabled) searchButton.disabled = true; } else if (searchButton.disabled) searchButton.disabled = false; 
add: var searchButton = document.getElementById("searchButton"); var sidebarSearchText = document.getElementById("sidebar-search-text"); searchButton.disabled = !sidebarSearchText.value; 
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.disabled)      searchButton.disabled = true;  }  else if (searchButton.disabled)    searchButton.disabled = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c837d8cd69e2d1c5d2619fe01ec4c3979b2e5f7e/search-panel.js/buggy/suite/common/search/search-panel.js