summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@content-space.de>2008-10-12 21:01:08 +0200
committermichael <michael@content-space.de>2008-10-12 21:01:08 +0200
commitcddd152cd07fff794aa5023d9cd6e61e26ab433c (patch)
tree339f2617ce344c08421e4dc7947e3abe0a16d114
parenta6f3bd20c4aaf2fd765b700a35fe5e4872e87e98 (diff)
downloadrpg-cddd152cd07fff794aa5023d9cd6e61e26ab433c.tar.gz
rpg-cddd152cd07fff794aa5023d9cd6e61e26ab433c.tar.bz2
Accesskeys and correct escaping for html_recent()
Readded the accesskeys to the recent changes HTML and removed double escaping of & in the diff- and revisions-urls. darcs-hash:20081012190108-074e0-ff556fd216f202ad1d7ef843cd98de908b919ceb.gz
-rw-r--r--inc/html.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/inc/html.php b/inc/html.php
index f15faf961..f9c58c896 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -565,7 +565,7 @@ function html_recent($first=0){
$form->addElement($date);
$form->addElement(form_makeCloseTag('span'));
- $form->addElement(form_makeOpenTag('a', array('class' => 'diff_link', 'href' => wl($recent['id'],"do=diff"))));
+ $form->addElement(form_makeOpenTag('a', array('class' => 'diff_link', 'href' => wl($recent['id'],"do=diff", false, '&'))));
$form->addElement(form_makeTag('img', array(
'src' => DOKU_BASE.'lib/images/diff.png',
'width' => 15,
@@ -575,7 +575,7 @@ function html_recent($first=0){
)));
$form->addElement(form_makeCloseTag('a'));
- $form->addElement(form_makeOpenTag('a', array('class' => 'revisions_link', 'href' => wl($recent['id'],"do=revisions"))));
+ $form->addElement(form_makeOpenTag('a', array('class' => 'revisions_link', 'href' => wl($recent['id'],"do=revisions",false,'&'))));
$form->addElement(form_makeTag('img', array(
'src' => DOKU_BASE.'lib/images/history.png',
'width' => 12,
@@ -613,7 +613,9 @@ function html_recent($first=0){
$form->addElement(form_makeTag('input', array(
'type' => 'submit',
'name' => 'first['.$first.']',
- 'value' => $lang['btn_newer']
+ 'value' => $lang['btn_newer'],
+ 'accesskey' => 'n',
+ 'title' => '[ALT+N]'
)));
$form->addElement(form_makeCloseTag('div'));
}
@@ -622,7 +624,9 @@ function html_recent($first=0){
$form->addElement(form_makeTag('input', array(
'type' => 'submit',
'name' => 'first['.$last.']',
- 'value' => $lang['btn_older']
+ 'value' => $lang['btn_older'],
+ 'accesskey' => 'p',
+ 'title' => '[ALT+P]'
)));
$form->addElement(form_makeCloseTag('div'));
}