diff --git a/lam/templates/config/confmodules.php b/lam/templates/config/confmodules.php index f157eb21..9182abcc 100644 --- a/lam/templates/config/confmodules.php +++ b/lam/templates/config/confmodules.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2004 - 2012 Roland Gruber + Copyright (C) 2004 - 2013 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -145,7 +145,7 @@ foreach ($jsFiles as $jsEntry) { // print error messages for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMessage', $errorsToDisplay[$i]); -echo ("
\n"); +echo ("\n"); // hidden submit buttons which are clicked by tabs echo "
\n"; @@ -230,6 +230,16 @@ $buttonContainer->addElement($cancelButton, true); $buttonContainer->addElement(new htmlSpacer(null, '10px'), true); parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); +if ((sizeof($errorsToDisplay) == 0) && isset($_POST['scrollPositionTop']) && isset($_POST['scrollPositionLeft'])) { + // scroll to last position + echo ''; +} + echo "\n"; echo "\n"; echo "\n"; diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index 47fbc7eb..d5943efc 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 - 2012 Roland Gruber + Copyright (C) 2009 - 2013 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -144,7 +144,7 @@ foreach ($jsFiles as $jsEntry) { // print error messages for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMessage', $errorsToDisplay[$i]); -echo ("
\n"); +echo ("\n"); // hidden submit buttons which are clicked by tabs echo "
\n"; @@ -241,6 +241,16 @@ $buttonContainer->addElement($cancelButton, true); $buttonContainer->addElement(new htmlSpacer(null, '10px'), true); parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); +if ((sizeof($errorsToDisplay) == 0) && isset($_POST['scrollPositionTop']) && isset($_POST['scrollPositionLeft'])) { + // scroll to last position + echo ''; +} + echo "\n"; echo "\n"; echo "\n"; diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index 7a3357e2..2c7e731a 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -88,7 +88,7 @@ if ((isset($_GET['headline'])) && ($_GET['logoFile'] != $_SESSION['currentPageDe if ((isset($_GET['headline'])) && ($_GET['headline'] != $_SESSION['currentPageDefinitions']['headline'])) { $_SESSION['currentPageDefinitions']['headline'] = str_replace('<','',str_replace('>','',$_GET['headline'])); } -if ((isset($_GET['foldingmarks'])) && ($_GET['foldingmarks'] != $_SESSION['currentPageDefinitions']['foldingmarks'])) { +if ((isset($_GET['foldingmarks'])) && (!isset($_SESSION['currentPageDefinitions']['foldingmarks']) || ($_GET['foldingmarks'] != $_SESSION['currentPageDefinitions']['foldingmarks']))) { $_SESSION['currentPageDefinitions']['foldingmarks'] = $_GET['foldingmarks']; } @@ -439,7 +439,7 @@ if (isset($_SESSION['currentPageDefinitions']['filename'])) { } ?> -
+ 0); $nonTextSectionElements = array(); @@ -612,6 +612,16 @@ $container->addElement($buttonContainer, true); $tabindex = 1; parseHtml(null, $container, array(), false, $tabindex, $_GET['type']); +if ((sizeof($saveErrors) == 0) && isset($_POST['scrollPositionTop']) && isset($_POST['scrollPositionLeft'])) { + // scroll to last position + echo ''; +} + echo '
'; include '../main_footer.php';