mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Merge "Making 'More...' link in archive more prominent per Vibha"
This commit is contained in:
commit
b44b289ba2
|
@ -8,10 +8,10 @@ h1#firstHeading {
|
||||||
/* Echo specific CSS */
|
/* Echo specific CSS */
|
||||||
|
|
||||||
#mw-echo-more {
|
#mw-echo-more {
|
||||||
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin-left: 45px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#mw-echo-pref-link {
|
#mw-echo-pref-link {
|
||||||
|
|
|
@ -14,8 +14,13 @@
|
||||||
*/
|
*/
|
||||||
'initialize': function() {
|
'initialize': function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
$( '#mw-echo-more' ).click(
|
// Convert more link into a button
|
||||||
function( e ) {
|
$( '#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();
|
e.preventDefault();
|
||||||
if ( !_this.processing ) {
|
if ( !_this.processing ) {
|
||||||
_this.processing = true;
|
_this.processing = true;
|
||||||
|
|
|
@ -5,7 +5,7 @@ class SpecialNotifications extends SpecialPage {
|
||||||
/**
|
/**
|
||||||
* Number of notification records to display per page/load
|
* Number of notification records to display per page/load
|
||||||
*/
|
*/
|
||||||
private static $displayNum = 10;
|
private static $displayNum = 20;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
parent::__construct( 'Notifications' );
|
parent::__construct( 'Notifications' );
|
||||||
|
@ -85,18 +85,16 @@ class SpecialNotifications extends SpecialPage {
|
||||||
|
|
||||||
// Build the more link
|
// Build the more link
|
||||||
if ( $more ) {
|
if ( $more ) {
|
||||||
// This is for no-javascript fallback
|
$html .= Html::element(
|
||||||
$url = Html::element(
|
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
'href' => SpecialPage::getTitleFor( 'Notifications' )->getLinkURL(
|
'href' => SpecialPage::getTitleFor( 'Notifications' )->getLinkURL(
|
||||||
array( 'paging' => intval( $nextTimestamp ) . '|' . intval( $nextOffset ) )
|
array( 'paging' => intval( $nextTimestamp ) . '|' . intval( $nextOffset ) )
|
||||||
)
|
),
|
||||||
|
'id' => 'mw-echo-more'
|
||||||
),
|
),
|
||||||
wfMessage( 'moredotdotdot' )->text()
|
wfMessage( 'moredotdotdot' )->text()
|
||||||
);
|
);
|
||||||
|
|
||||||
$html .= Html::rawElement( 'div', array( 'id' => 'mw-echo-more' ), $url );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$out->addHTML( $html );
|
$out->addHTML( $html );
|
||||||
|
|
Loading…
Reference in a new issue