From 21acbc321cc8f9bfa6030564a7d3ffb190483d92 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Wed, 25 Jun 2008 06:03:59 +0000 Subject: [PATCH] Consent: autofocus on yes-button. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@709 44740490-163a-0410-bde0-09ae8108e29a --- templates/default/consent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/default/consent.php b/templates/default/consent.php index c4c1cbc3d..2d0a3c5ec 100644 --- a/templates/default/consent.php +++ b/templates/default/consent.php @@ -1,4 +1,5 @@ <?php + $this->data['autofocus'] = 'yesbutton'; $this->includeAtTemplateBase('includes/header.php'); $this->includeLanguageFile('consent.php'); @@ -19,7 +20,7 @@ } ?> <form style="display: inline" action="<?php echo htmlspecialchars($this->data['consenturl']); ?>"> - <input type="submit" value="<?php echo htmlspecialchars($this->t('yes')) ?>" /> + <input type="submit" id="yesbutton" value="<?php echo htmlspecialchars($this->t('yes')) ?>" /> <input type="hidden" name="consent" value="<?php echo htmlspecialchars($this->data['consent_cookie']); ?>" /> <input type="hidden" name="RequestID" value="<?php echo htmlspecialchars($this->data['requestid']); ?>" /> <?php if($this->data['usestorage']) { ?> -- GitLab