Project

General

Profile

Bug #24592 ยป 17057_v2.patch

Administrator Admin, 2011-02-03 12:34

View differences:

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);
    (1-1/1)