[BUGFIX] Configuration->"Use regular expression" 77/54377/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Oct 2017 12:43:20 +0000 (14:43 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 12 Oct 2017 13:02:19 +0000 (15:02 +0200)
Setting / unsetting the checkbox "Use regular expression"
fails with JavaScript error "jumpToUrl is not defined".
Add that to the document body.

Change-Id: I0a5928e008972493d070a35d1219a0acca579ce8
Resolves: #82746
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/54377
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/lowlevel/Classes/Controller/ConfigurationController.php

index 7139496..b52483e 100644 (file)
@@ -281,6 +281,15 @@ class ConfigurationController
             $menu->addMenuItem($item);
         }
         $moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->addMenu($menu);
+        $moduleTemplate->addJavaScriptCode(
+            'jumpToUrl',
+            '
+            function jumpToUrl(URL) {
+                window.location.href = URL;
+                return false;
+            }
+            '
+        );
 
         $content = '<form action="" id="ConfigurationView" method="post">';
         $content .= $view->render();