rem: var filter = currentFilter(); if (filter) { editButton.removeAttribute("disabled"); deleteButton.removeAttribute("disabled"); 
add: var filters = document.getElementById("filterTree").selectedItems; var filterSelected = (filters.length > 0) editButton.disabled = !filterSelected; deleteButton.disabled = !filterSelected; if (filterSelected) { reorderUpButton.disabled = !filters[0].previousSibling; reorderDownButton.disabled = !filters[0].nextSibling; 
context: function updateButtons(){    var filter = currentFilter();    if (filter) {        editButton.removeAttribute("disabled");        deleteButton.removeAttribute("disabled");    } else {        editButton.setAttribute("disabled", "true");        deleteButton.setAttribute("disabled", "true");    }                      }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/9ab10787d7d576dd77c35245e4cc85662e81d6e8/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js