rem: if (nodeIndex <= 1) 
add: if (nodeIndex <= 1) 
context: function doMoveDirectionEnabling(){  var tree = document.getElementById("engineList")  var selectedItems = tree.selectedItems;  if (!selectedItems && selectedItems.length != 1)    return false;  var ref = tree.getAttribute("ref");  var categoryResource = RDF.GetResource(ref);  var elementResource = RDF.GetResource(selectedItems[0].id);  RDFC.Init(catDS, categoryResource);  var nodeIndex = RDFC.IndexOf(elementResource);  var moveUpButton = document.getElementById("up");  var moveDownButton = document.getElementById("down");  moveUpButton.removeAttribute("disabled");  moveDownButton.removeAttribute("disabled");  if (nodeIndex <= 1)      moveUpButton.setAttribute("disabled", "true");  if (nodeIndex >= RDFC.GetCount())    moveDownButton.setAttribute("disabled", "true");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/search-editor.js/clean/xpfe/components/search/resources/search-editor.js