[BUGFIX] Select label element from suggest-list 69/20069/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:13:39 +0000 (15:13 +0200)
commitc18160ece8a8740c3169d6f0adb438f7f66bcc41
treeb9e1b661f00907b70705e6fe90049f83146a22eb
parent780e7ddd8f94639c3c8e22bd0f7620e666884fbb
[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/20069
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/js/jsfunc.tceforms_suggest.js