2010-04-08 Steffen Kamper <info@sk-typo3.de>
+ * Fixed bug #13828: Login cause JS error if not in frame (access to parent is not allowed)
* Added feature #12818: Feature: border class is hardcoded [css styled content] (thanks to Susanne Moog)
* Fixed bug #13693: Backend doesn't use pageRenderer methods
$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;
+ try {
+ if (parent.opener && parent.opener.TS && parent.opener.TS.username && document.loginform && document.loginform.username) {
+ document.loginform.username.value = parent.opener.TS.username;
+ }
+ }
+ catch(error) {
+ //continue
}
// Wait a few millisecons before calling checkFocus(). This might be necessary because some browsers need some time to auto-fill in the form fields