prevent scrolling on self service certificates

This commit is contained in:
Roland Gruber 2013-08-15 19:06:10 +00:00
parent 1ca4f12b8d
commit 365216144b
1 changed files with 2 additions and 2 deletions

View File

@ -3222,7 +3222,7 @@ class inetOrgPerson extends baseModule implements passwordService {
*
* @return htmlTable certificate content
*/
private static function getSelfServiceUserCertificates() {
private function getSelfServiceUserCertificates() {
$userCertificates = $_SESSION[self::SESS_CERTIFICATES_LIST];
$content = new htmlTable();
if (sizeof($userCertificates) > 0) {
@ -3239,7 +3239,7 @@ class inetOrgPerson extends baseModule implements passwordService {
$certTable->addElement($saveLink);
$delLink = new htmlLink('', '#', '../../graphics/del.png');
$delLink->setTitle(_('Delete'));
$delLink->setOnClick('inetOrgPersonDeleteCertificate(' . $i . ')');
$delLink->setOnClick('inetOrgPersonDeleteCertificate(' . $i . '); return false;');
$certTable->addElement($delLink);
if (function_exists('openssl_x509_parse')) {
$pem = @chunk_split(@base64_encode($userCertificates[$i]), 64, "\n");