Commit 694e350a authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[TASK] Remove unused "cMR" flag in Folder navigation

The "cMR" flag is removed, which indicated some
functionality called "condensed mode" which existed
in TYPO3 v3+v4, and was removed some time in TYPO3 v4.x
development.

The flag serves no purpose for over a decade now
and is removed.

Resolves: #92591
Releases: master
Change-Id: Ib9a26293009d32a8d8ac67fded589a828483606e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66153

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 4d5b7b05
......@@ -385,7 +385,7 @@ class BackendController
currentBank: "0"
};
top.goToModule = function(modName, cMR_flag, addGetVars) {
top.goToModule = function(modName, addGetVars) {
TYPO3.ModuleMenu.App.showModule(modName, addGetVars);
}
' . $this->setStartupModule($request)
......
......@@ -56,11 +56,6 @@ class FileSystemNavigationFrameController
*/
protected $currentSubScript;
/**
* @var bool
*/
protected $cMR;
/**
* @var array
*/
......@@ -115,7 +110,6 @@ class FileSystemNavigationFrameController
$queryParams = $request->getQueryParams();
$this->currentSubScript = $parsedBody['currentSubScript'] ?? $queryParams['currentSubScript'] ?? null;
$this->cMR = (bool)($parsedBody['cMR'] ?? $queryParams['cMR'] ?? false);
$scopeData = $parsedBody['scopeData'] ?? $queryParams['scopeData'] ?? '';
$scopeHash = $parsedBody['scopeHash'] ?? $queryParams['scopeHash'] ?? '';
......@@ -185,7 +179,7 @@ class FileSystemNavigationFrameController
if (linkObj) { linkObj.blur(); }
return false;
}
' . ($this->cMR ? ' jumpTo(top.fsMod.recentIds[\'file\'],\'\');' : '');
';
$this->moduleTemplate->getPageRenderer()->addJsInlineCode(
'FileSystemNavigationFrame',
......
......@@ -357,7 +357,7 @@ class PageLayoutController
if (is_array($modules['web']['sub']['list'])) {
$title = $lang->getLL('goToListModule');
$message = '<p>' . $lang->getLL('goToListModuleMessage') . '</p>';
$message .= '<a class="btn btn-info" href="javascript:top.goToModule(\'web_list\',1);">' . $lang->getLL('goToListModule') . '</a>';
$message .= '<a class="btn btn-info" href="javascript:top.goToModule(\'web_list\');">' . $lang->getLL('goToListModule') . '</a>';
$view->assignMultiple([
'title' => $title,
'message' => $message,
......
......@@ -48,7 +48,7 @@ function loadEditId(id, addGetVars) { //
top.nav_frame.refresh_nav();
}
if (TYPO3.configuration.pageModule) {
top.goToModule(TYPO3.configuration.pageModule, 0, addGetVars ? addGetVars : "");
TYPO3.ModuleMenu.App.showModule(TYPO3.configuration.pageModule, addGetVars);
}
}
......
......@@ -57,7 +57,7 @@ class WarningMessagePostProcessor
];
$warningMessages['tx_reports_status_notification'] = sprintf(
$this->getLanguageService()->getLL('status_problemNotification'),
'<a href="javascript:top.goToModule(' . GeneralUtility::quoteJSvalue($reportModuleIdentifier) . ', 1, ' . GeneralUtility::quoteJSvalue('&' . implode('&', $reportModuleParameters)) . ');">',
'<a href="javascript:top.goToModule(' . GeneralUtility::quoteJSvalue($reportModuleIdentifier) . ', ' . GeneralUtility::quoteJSvalue('&' . implode('&', $reportModuleParameters)) . ');">',
'</a>'
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment