Project

General

Profile

Feature #17021 ยป patch_5046.diff

Administrator Admin, 2009-12-29 13:08

View differences:

typo3/index.php (Arbeitskopie)
$JSCode .= $GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
function startUp() {
// If the login screen is shown in the login_frameset window for re-login, then try to get the username of the current/former login from opening windows main frame:
if (parent.opener && parent.opener.TS && parent.opener.TS.username && document.loginform && document.loginform.username) {
document.loginform.username.value = parent.opener.TS.username;
if (document.loginform && document.loginform.username) {
document.loginform.username.setAttribute("autocomplete","off");
if (parent.opener && parent.opener.TS && parent.opener.TS.username) {
document.loginform.username.value = parent.opener.TS.username;
}
}
// Wait a few millisecons before calling checkFocus(). This might be necessary because some browsers need some time to auto-fill in the form fields
    (1-1/1)