Project

General

Profile

Bug #20828 » 0011640_v2.diff

Administrator Admin, 2009-08-05 16:09

View differences:

t3lib/jsfunc.inline.js
if (!records[i].length) continue;
headerObj = $(objectPrefix+'['+records[i]+']_header');
sortingObj[0] = Element.select(headerObj, '.sortingUp');
sortingObj[1] = Element.select(headerObj, '.sortingDown');
if (navigator.userAgent.indexOf('Firefox/3.5') != -1) {
sortingObj[0] = headerObj.querySelector('.sortingUp');
sortingObj[1] = headerObj.querySelector('.sortingDown');
} else {
sortingObj[0] = Element.select(headerObj, '.sortingUp')[0];
sortingObj[1] = Element.select(headerObj, '.sortingDown')[0];
}
if (sortingObj[0].length) {
sortingObj[0][0].style.visibility = (i == 0 ? 'hidden' : 'visible');
if (sortingObj[0]) {
sortingObj[0].style.visibility = (i == 0 ? 'hidden' : 'visible');
}
if (sortingObj[1].length) {
sortingObj[1][0].style.visibility = (i == records.length-1 ? 'hidden' : 'visible');
if (sortingObj[1]) {
sortingObj[1].style.visibility = (i == records.length-1 ? 'hidden' : 'visible');
}
}
},
(3-3/3)