[BUGFIX] Escape dots of flexform field names 14/51014/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 21 Dec 2016 11:47:06 +0000 (12:47 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 17 Mar 2017 13:22:42 +0000 (14:22 +0100)
To make inline proper working in JS, the name of the field must be escaped
as it can contain dots.

Resolves: #78985
Releases: master, 7.6
Change-Id: I18c1d85906b9710c25b326b89e8104f3ea3c8a29
Reviewed-on: https://review.typo3.org/51014
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js

index 1c47448..28e596e 100644 (file)
@@ -1220,11 +1220,11 @@ var inline = {
        },
 
        hideElementsWithClassName: function (selector, parentElement) {
-               $('#' + parentElement).find(selector).fadeOut(200);
+               $('#' + this.escapeObjectId(parentElement)).find(selector).fadeOut(200);
        },
 
        showElementsWithClassName: function (selector, parentElement) {
-               $('#' + parentElement).find(selector).fadeIn(200);
+               $('#' + this.escapeObjectId(parentElement)).find(selector).fadeIn(200);
        },
 
        // sets the opacity to 0.2 and then fades in to opacity 1