[BUGFIX] Use first item of HTMLCollection for form reload 89/42489/2
authorDaniel Goerz <ervaude@gmail.com>
Mon, 10 Aug 2015 19:56:11 +0000 (21:56 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 10 Aug 2015 20:18:08 +0000 (22:18 +0200)
Change-Id: Ib2a12b1915421b01084cac44fc4cea2ca978a42c
Resolves: #68880
Releases: master
Reviewed-on: http://review.typo3.org/42489
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.tbe_editor.js

index 08b885e..26ff352 100644 (file)
@@ -255,7 +255,7 @@ var TBE_EDITOR = {
                // EXT:backend/Resources/Public/JavaScript/FormEngine.js (reference: http://forge.typo3.org/issues/58755).
                // TODO: This should be solved in a better way when this script is refactored.
                window.setTimeout(function() {
-                       document.getElementsByName(TBE_EDITOR.formname).submit();
+                       document.getElementsByName(TBE_EDITOR.formname).item(0).submit();
                }, 10);
        },
        split: function(theStr1, delim, index) {