rem: var list = document.getElementById('selectList'); var listSelect = list.selectedIndex; dump("list\n" + listSelect); if (list.selectedIndex != -1) { var listOption = list.childNodes.item(listSelect); var listOptionBefore = list.childNodes.item(listSelect+1).cloneNode(true); list.remove(listSelect+1); list.insertBefore(listOptionBefore, listOption); dump("\n" + listOption + "\n"); } 
add: var list = document.getElementById('selectList'); var listSelect = list.selectedIndex; dump("list\n" + listSelect); if (list.selectedIndex != -1) { var listOption = list.childNodes.item(listSelect); var listOptionBefore = list.childNodes.item(listSelect+1).cloneNode(true); list.remove(listSelect+1); list.insertBefore(listOptionBefore, listOption); dump("\n" + listOption + "\n"); } 
context: function moveDown() {    var list = document.getElementById('selectList');		var listSelect = list.selectedIndex;	dump("list\n" + listSelect);		if (list.selectedIndex != -1) {		var listOption = list.childNodes.item(listSelect);		var listOptionBefore = list.childNodes.item(listSelect+1).cloneNode(true);		list.remove(listSelect+1);		list.insertBefore(listOptionBefore, listOption);		dump("\n" + listOption + "\n");	 }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1c5128ed665789d335de38cc5f8c8f55e2dbef85/dialogSidebar.js/clean/rdf/resources/dialogSidebar.js