[BUGFIX] Select label element from suggest-list 45/20045/7
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:04:41 +0000 (15:04 +0200)
commitf4cc19195ab1156215c639f4e2ae1ee5bec03384
tree55fe8117e5b9ea93e4765315ecec25427d769a02
parent34119ff49d9423ed2091ab7384fa6074d80fae6b
[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/20045
Reviewed-by: Stefan Neufeind
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Tested-by: Nicole Cordes
Reviewed-by: Nicole Cordes
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/js/jsfunc.tceforms_suggest.js