Commit 82c6be75 authored by Wouter Wolters's avatar Wouter Wolters Committed by Christian Kuhn
Browse files

[!!!][TASK] Remove unused configuration options for JavaScript

Remove all options that are not used anymore from TYPO3.configuration
in JavaScript context.

Resolves: #78525
Releases: master
Change-Id: I69ee333e01d75ab4dc14b35f91a172df1ab20d62
Reviewed-on: https://review.typo3.org/50463


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 57d452db
......@@ -64,11 +64,6 @@ class BackendController
*/
protected $toolbarItems = [];
/**
* @var int
*/
protected $menuWidth = 190;
/**
* @var bool
*/
......@@ -164,9 +159,6 @@ class BackendController
$this->css = '';
$this->initializeToolbarItems();
if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'])) {
$this->menuWidth = (int)$GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
}
$this->executeHook('constructPostProcess');
$this->includeLegacyBackendItems();
}
......@@ -589,8 +581,6 @@ class BackendController
'uniqueID' => GeneralUtility::shortMD5(uniqid('', true)),
'pageModule' => $pageModule,
'inWorkspace' => $beUser->workspace !== 0,
'moduleMenuWidth' => $this->menuWidth - 1,
'topBarHeight' => isset($GLOBALS['TBE_STYLES']['dims']['topFrameH']) ? (int)$GLOBALS['TBE_STYLES']['dims']['topFrameH'] : 45,
'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? (int)$GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] : false,
'debugInWindow' => $beUser->uc['debugInWindow'] ? 1 : 0,
'ContextHelpWindows' => [
......
......@@ -40,12 +40,6 @@ TYPO3 = Ext.apply(TYPO3, {
}
});
/**
* general backend javascript functions
*/
Ext.ns('TYPO3.configuration');
/**
* jump the backend to a module
*/
......
.. include:: ../../Includes.txt
=====================================================================
Breaking: #78525 - Remove unused configuration options for JavaScript
=====================================================================
See :issue:`78525`
Description
===========
Remove all options that are not used anymore from TYPO3.configuration in JavaScript context.
:js:`TYPO3.configuration.moduleMenuWidth`
:js:`TYPO3.configuration.topBarHeight`
Impact
======
Both settings are not available anymore in JavaScript under :js:`TYPO3.configuration`.
Affected Installations
======================
Any installation that uses one of the mentioned options.
Migration
=========
No migration.
.. index:: Backend, JavaScript
......@@ -225,7 +225,6 @@ class PreviewController extends AbstractController
'uniqueID' => GeneralUtility::shortMD5(uniqid('', true)),
'pageModule' => $pageModule,
'inWorkspace' => $backendUser->workspace !== 0,
'topBarHeight' => isset($GLOBALS['TBE_STYLES']['dims']['topFrameH']) ? (int)$GLOBALS['TBE_STYLES']['dims']['topFrameH'] : 30,
'showRefreshLoginPopup' => isset($GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup']) ? (int)$GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] : false,
'debugInWindow' => $backendUser->uc['debugInWindow'] ? 1 : 0,
'ContextHelpWindows' => [
......
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