Skip to content

Commit

Permalink
[BUGFIX] fallback for TYPO3 8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
IndyIndyIndy committed Jan 23, 2019
1 parent 9c83c53 commit ebef256
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Resources/Public/JavaScript/TabModuleClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

/**
Expand Down

0 comments on commit ebef256

Please sign in to comment.