diff --git a/modules/special/ext.echo.special.css b/modules/special/ext.echo.special.css index 00f196966..65b114ca0 100644 --- a/modules/special/ext.echo.special.css +++ b/modules/special/ext.echo.special.css @@ -8,10 +8,10 @@ h1#firstHeading { /* Echo specific CSS */ #mw-echo-more { + display: block; text-align: center; font-size: 13px; max-width: 600px; - margin-left: 45px; } #mw-echo-pref-link { diff --git a/modules/special/ext.echo.special.js b/modules/special/ext.echo.special.js index 751791d2a..00eb2eaf4 100644 --- a/modules/special/ext.echo.special.js +++ b/modules/special/ext.echo.special.js @@ -14,8 +14,13 @@ */ 'initialize': function() { var _this = this; - $( '#mw-echo-more' ).click( - function( e ) { + // Convert more link into a button + $( '#mw-echo-more' ) + .button() + // Override jQuery UI button margins + .css( 'margin', '0.5em 0 0 0' ) + .addClass( 'ui-button-blue' ) + .click( function( e ) { e.preventDefault(); if ( !_this.processing ) { _this.processing = true; diff --git a/special/SpecialNotifications.php b/special/SpecialNotifications.php index 4702d7ff0..0bcdf6482 100644 --- a/special/SpecialNotifications.php +++ b/special/SpecialNotifications.php @@ -5,7 +5,7 @@ class SpecialNotifications extends SpecialPage { /** * Number of notification records to display per page/load */ - private static $displayNum = 10; + private static $displayNum = 20; public function __construct() { parent::__construct( 'Notifications' ); @@ -85,18 +85,16 @@ class SpecialNotifications extends SpecialPage { // Build the more link if ( $more ) { - // This is for no-javascript fallback - $url = Html::element( + $html .= Html::element( 'a', array( 'href' => SpecialPage::getTitleFor( 'Notifications' )->getLinkURL( array( 'paging' => intval( $nextTimestamp ) . '|' . intval( $nextOffset ) ) - ) + ), + 'id' => 'mw-echo-more' ), wfMessage( 'moredotdotdot' )->text() ); - - $html .= Html::rawElement( 'div', array( 'id' => 'mw-echo-more' ), $url ); } $out->addHTML( $html );