From ebef256b981f90a3cf4a55c3bc3ae8c368b2548f Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 23 Jan 2019 18:23:31 +0100 Subject: [PATCH] [BUGFIX] fallback for TYPO3 8.7 --- Resources/Public/JavaScript/TabModuleClick.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Public/JavaScript/TabModuleClick.js b/Resources/Public/JavaScript/TabModuleClick.js index f91d26e..a7f86ed 100644 --- a/Resources/Public/JavaScript/TabModuleClick.js +++ b/Resources/Public/JavaScript/TabModuleClick.js @@ -94,7 +94,14 @@ define(["jquery", "TYPO3/CMS/Backend/ModuleMenu"], function($, ModuleMenu ) { * @param {string} id */ TabModuleClick.openSubModule = function (id) { - ModuleMenu.App.showModule(id); + if (typeof ModuleMenu !== 'undefined') { + ModuleMenu.App.showModule(id); + } else { + // fallback for TYPO3 8.7 + setTimeout(function () { + $('#'+id).trigger('click'); + }, 500); + } }; /**