[BUGFIX] Add jumpToUrl Javascript in TyposcriptTemplateModule
[Packages/TYPO3.CMS.git] / typo3 / sysext / tstemplate / Classes / Controller / TypoScriptTemplateModuleController.php
index 71b2f74..fa06094 100755 (executable)
@@ -119,6 +119,15 @@ class TypoScriptTemplateModuleController extends BaseScriptClass
         $this->MCONF = array(
             'name' => $this->moduleName
         );
+        $this->moduleTemplate->addJavaScriptCode(
+            'jumpToUrl',
+            '
+            function jumpToUrl(URL) {
+                window.location.href = URL;
+                return false;
+            }
+            '
+        );
     }
 
     /**