Commit 6de9228e authored by Stefan Aebischer's avatar Stefan Aebischer Committed by Christian Kuhn
Browse files

[BUGFIX] IRRE childs don't expand in Internet Explorer

document.getElementsByName doesn't always extend the returned DOM
Elements with prototype.js specific methods in Internet Explorer.
This patch uses the $$() selector to retrieve the needed DOM
Elements, as it always extends the returned Elements with
prototype.js specific methods (e.g. remove())

Change-Id: I083ca8b55a3b95757408a159f39f7b22cacf9c8f
Fixes: #38849
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/12776
Tested-by: Stefan Geith
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent 72894960
......@@ -454,8 +454,8 @@ var inline = {
var elName = this.parseObjectId('full', objectId, 2, 0, true);
formObj = document.getElementsByName(elName + '[hidden]_0');
valueObj = document.getElementsByName(elName + '[hidden]');
formObj = $$('[name="' + elName + '[hidden]_0"]');
valueObj = $$('[name="' + elName + '[hidden]"]');
// It might be the case that a child record
// cannot be hidden at all (no hidden field)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment