Project

General

Profile

Actions

Bug #20828

closed

Sorting icons are not redrawn

Added by Andreas Wolf almost 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-08-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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: "0x8053000c (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/alt_doc.php?returnUrl=db_list.php%3Fid%3D28%26table%3D&edit[tx_irretutorial_1ncsv_hotel]1=edit> line 1.

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)


Files

0011640_test.png (6.51 KB) 0011640_test.png Administrator Admin, 2009-08-04 17:14
0011640_v1.diff (949 Bytes) 0011640_v1.diff Administrator Admin, 2009-08-05 16:05
0011640_v2.diff (1.16 KB) 0011640_v2.diff Administrator Admin, 2009-08-05 16:09
Actions

Also available in: Atom PDF