Bug #24592 ยป 17057_v2.patch
typo3/backend.php (revision ) | ||
---|---|---|
$this->pageRenderer->loadExtJS();
|
||
$this->pageRenderer->enableExtJSQuickTips();
|
||
$this->pageRenderer->addExtOnReadyCode(
|
||
'TYPO3.Backend = new TYPO3.Viewport(TYPO3.Viewport.configuration);
|
||
if (typeof console === "undefined") {
|
||
console = TYPO3.Backend.DebugConsole;
|
||
}
|
||
TYPO3.ContextHelpWindow.init();',
|
||
TRUE
|
||
);
|
||
$this->pageRenderer->addJsInlineCode(
|
||
'consoleOverrideWithDebugPanel',
|
||
'//already done'
|
||
... | ... | |
//save states in BE_USER->uc
|
||
$extOnReadyCode = '
|
||
Ext.state.Manager.setProvider(new TYPO3.state.ExtDirectProvider({
|
||
key: "BackendComponents.States"
|
||
key: "BackendComponents.States",
|
||
autoRead: false
|
||
}));
|
||
';
|
||
if ($states) {
|
||
$extOnReadyCode .= 'Ext.state.Manager.getProvider().initState(' . $states . ');';
|
||
$extOnReadyCode .= 'Ext.state.Manager.getProvider().initState(' . json_encode($states) . ');';
|
||
}
|
||
$extOnReadyCode .= '
|
||
TYPO3.Backend = new TYPO3.Viewport(TYPO3.Viewport.configuration);
|
||
if (typeof console === "undefined") {
|
||
console = TYPO3.Backend.DebugConsole;
|
||
}
|
||
TYPO3.ContextHelpWindow.init();';
|
||
$this->pageRenderer->addExtOnReadyCode($extOnReadyCode);
|
||