[BUGFIX] Select label element from suggest-list 70/20070/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 20 Apr 2013 19:43:16 +0000 (21:43 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 22 Apr 2013 13:14:04 +0000 (15:14 +0200)
commitdbd2417e0ac3f8a97aa33ec08a7efc6b2e2a6531
treec557a1fb7bc3cdbadf684569164bca2f5f424b97
parentd172ba7ae853beb8bfeafb045306b3a69d1e1c76
[BUGFIX] Select label element from suggest-list

If a sprite is the first child in chosen item from
suggest-list no label is generated.

Therefore select the element depending on the class.
Besides that, e.g. Flexform elements use "invalid" CSS
IDs that contain "[" and "]" characters - using plain
CSS selectors on that does not work and needs to be
escaped first.

Fixes: #47409
Releases: 4.5, 4.7, 6.0, 6.1
Change-Id: I40fad4b6596923cc87889726794f115eb7b58eb5
Reviewed-on: https://review.typo3.org/20070
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/js/jsfunc.tceforms_suggest.js