[BUGFIX] Configuration->"Use regular expression" 80/54380/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Oct 2017 12:43:20 +0000 (14:43 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Oct 2017 13:23:24 +0000 (15:23 +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/54380
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/lowlevel/Classes/View/ConfigurationView.php

index b16bea7..0a9c2b5 100644 (file)
@@ -315,5 +315,14 @@ class ConfigurationView extends BaseScriptClass
             $menu->addMenuItem($item);
         }
         $this->moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->addMenu($menu);
+        $this->moduleTemplate->addJavaScriptCode(
+            'jumpToUrl',
+            '
+            function jumpToUrl(URL) {
+                window.location.href = URL;
+                return false;
+            }
+            '
+        );
     }
 }