#20828Sorting icons are not redrawn
Description
When trying to sort icons in IRRE enabled records via the sort buttons, the records are sorted, but the icons are not redrawn afterwards if one of the records was the first or the last one.
The problem comes from an invalid javascript statement in Prototype’s findElements function. This function calls querySelectorAll() of the surrounding header element. Apparently, this function is broken in at least Firefox 3.5. It either throws an exception:
Exception ``[Exception… “An invalid or illegal string was specified” code: “12” nsresult: “0×8053000c (NS_ERROR_DOM_SYNTAX_ERR)” location: “http://typo3-dev/patchtest/typo3/contrib/prototype/prototype.js Line: 2844”]’‘ thrown from function onclick(event=MouseEvent:{0}) in <http: typo3-dev patchtest typo3 class="footnote" id="fnrev6611228666b0228ddf401e-1"><a href="#fn6611228666b0228ddf401e-1">1</a>=edit> line 1.</http:>
or some Null exception.
The problem seems to be solvable by using headerObj.select() instead of Element.select(headerObj) in jsfunc.inline.js::redrawSortingButtons(). I’ll further test this solution on different browsers and platforms.
(issue imported from #M11640)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.