Index: trunk/phase3/includes/HistoryPage.php |
— | — | @@ -380,15 +380,19 @@ |
381 | 381 | $s .= Html::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n"; |
382 | 382 | $s .= Html::hidden( 'action', 'historysubmit' ) . "\n"; |
383 | 383 | |
| 384 | + $s .= '<div>' . $this->submitButton( wfMsg( 'compareselectedversions'), |
| 385 | + array( 'class' => 'historysubmit' ) ) . "\n"; |
| 386 | + |
384 | 387 | $this->buttons = '<div>'; |
385 | 388 | $this->buttons .= $this->submitButton( wfMsg( 'compareselectedversions'), |
386 | 389 | array( 'class' => 'historysubmit' ) |
387 | 390 | + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'compareselectedversions' ) |
388 | 391 | ) . "\n"; |
| 392 | + |
389 | 393 | if( $wgUser->isAllowed('deleterevision') ) { |
390 | 394 | $float = $wgContLang->alignEnd(); |
391 | 395 | # Note bug #20966, <button> is non-standard in IE<8 |
392 | | - $this->buttons .= Html::element( 'button', |
| 396 | + $element = Html::element( 'button', |
393 | 397 | array( |
394 | 398 | 'type' => 'submit', |
395 | 399 | 'name' => 'revisiondelete', |
— | — | @@ -398,11 +402,13 @@ |
399 | 403 | ), |
400 | 404 | wfMsg( 'showhideselectedversions' ) |
401 | 405 | ) . "\n"; |
| 406 | + $s .= $element; |
| 407 | + $this->buttons .= $element; |
402 | 408 | } |
403 | 409 | if( $wgUser->isAllowed( 'revisionmove' ) ) { |
404 | 410 | $float = $wgContLang->alignEnd(); |
405 | 411 | # Note bug #20966, <button> is non-standard in IE<8 |
406 | | - $this->buttons .= Html::element( 'button', |
| 412 | + $element = Html::element( 'button', |
407 | 413 | array( |
408 | 414 | 'type' => 'submit', |
409 | 415 | 'name' => 'revisionmove', |
— | — | @@ -412,9 +418,11 @@ |
413 | 419 | ), |
414 | 420 | wfMsg( 'revisionmoveselectedversions' ) |
415 | 421 | ) . "\n"; |
| 422 | + $s .= $element; |
| 423 | + $this->buttons .= $element; |
416 | 424 | } |
417 | 425 | $this->buttons .= '</div>'; |
418 | | - $s .= $this->buttons . '<ul id="pagehistory">' . "\n"; |
| 426 | + $s .= '</div><ul id="pagehistory">' . "\n"; |
419 | 427 | return $s; |
420 | 428 | } |
421 | 429 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -312,6 +312,8 @@ |
313 | 313 | * (bug 20744) Wiki forgets about an uploaded file |
314 | 314 | * (bug 17913) Don't show "older edit" when no older edit available |
315 | 315 | * (bug 6204) TOC not properly rendered when using $wgMaxTocLevel |
| 316 | +* (bug 24977) The accesskey in history page now lead directly to the diff |
| 317 | + instead of alterning focus between the two buttons. |
316 | 318 | |
317 | 319 | === API changes in 1.17 === |
318 | 320 | * (bug 22738) Allow filtering by action type on query=logevent. |