rem: if (sortingObj[0].length) sortingObj[0][0].style.visibility = i == 0 ? 'hidden' : 'visible'; if (sortingObj[1].length) sortingObj[1][0].style.visibility = i == records.length-1 ? 'hidden' : 'visible'; 
add: if (sortingObj[0].length) { sortingObj[0][0].style.visibility = (i == 0 ? 'hidden' : 'visible'); } if (sortingObj[1].length) { sortingObj[1][0].style.visibility = (i == records.length-1 ? 'hidden' : 'visible'); } 
context: 	redrawSortingButtons: function(objectPrefix, records) {		var i;		var headerObj;		var sortingObj = new Array();			// if no records were passed, fetch them from form field		if (typeof records == 'undefined') {			records = new Array();			var objectName = this.prependFormFieldNames+this.parseFormElementName('parts', objectPrefix, 3, 1);			var formObj = document.getElementsByName(objectName);			if (formObj.length) records = formObj[0].value.split(',');		}		for (i=0; i<records.length; i++) {			if (!records[i].length) continue;			headerObj = $(objectPrefix+'['+records[i]+']_header');			sortingObj[0] = headerObj.getElementsByClassName('sortingUp');			sortingObj[1] = headerObj.getElementsByClassName('sortingDown');			if (sortingObj[0].length)				sortingObj[0][0].style.visibility = i == 0 ? 'hidden' : 'visible';			if (sortingObj[1].length)				sortingObj[1][0].style.visibility = i == records.length-1 ? 'hidden' : 'visible';		}	},
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/53c825815c279d7582fe28a3ef6eeff5d1cd436d/jsfunc.inline.js/clean/t3lib/jsfunc.inline.js