Index: trunk/phase3/includes/actions/HistoryAction.php |
— | — | @@ -409,20 +409,20 @@ |
410 | 410 | $s .= Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . "\n"; |
411 | 411 | $s .= Html::hidden( 'action', 'historysubmit' ) . "\n"; |
412 | 412 | |
413 | | - $s .= '<div>' . $this->submitButton( $this->msg( 'compareselectedversions' )->text(), |
414 | | - array( 'class' => 'historysubmit' ) ) . "\n"; |
415 | | - |
| 413 | + // Button container stored in $this->buttons for re-use in getEndBody() |
416 | 414 | $this->buttons = '<div>'; |
417 | 415 | $this->buttons .= $this->submitButton( $this->msg( 'compareselectedversions' )->text(), |
418 | | - array( 'class' => 'historysubmit' ) |
| 416 | + array( 'class' => 'historysubmit mw-history-compareselectedversions-button' ) |
419 | 417 | + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' ) |
420 | 418 | ) . "\n"; |
421 | 419 | |
422 | 420 | if ( $this->getUser()->isAllowed( 'deleterevision' ) ) { |
423 | | - $s .= $this->getRevisionButton( 'revisiondelete', 'showhideselectedversions' ); |
| 421 | + $this->buttons .= $this->getRevisionButton( 'revisiondelete', 'showhideselectedversions' ); |
424 | 422 | } |
425 | 423 | $this->buttons .= '</div>'; |
426 | | - $s .= '</div><ul id="pagehistory">' . "\n"; |
| 424 | + |
| 425 | + $s .= $this->buttons; |
| 426 | + $s .= '<ul id="pagehistory">' . "\n"; |
427 | 427 | return $s; |
428 | 428 | } |
429 | 429 | |
— | — | @@ -438,7 +438,6 @@ |
439 | 439 | ), |
440 | 440 | $this->msg( $msg )->text() |
441 | 441 | ) . "\n"; |
442 | | - $this->buttons .= $element; |
443 | 442 | return $element; |
444 | 443 | } |
445 | 444 | |