Use class for toggle links on Special:Log
The toogle links All, None, Invert on Special:Log are shown at top and at bottom, but using the same id, which make the page invalid and the second link not working. Change to class. Follow up: I92141a7079fc7fcd7152ef418d82f4f7969b163b Change-Id: I1107b320efe5d3b63ea091ea986e35158d24c098
This commit is contained in:
parent
2c085ac5a3
commit
79414f83c2
2 changed files with 6 additions and 6 deletions
|
|
@ -262,15 +262,15 @@ class SpecialLog extends SpecialPage {
|
|||
// Select: All, None, Invert
|
||||
$links = array();
|
||||
$links[] = Html::element(
|
||||
'a', array( 'href' => '#', 'id' => 'checkbox-all' ),
|
||||
'a', array( 'href' => '#', 'class' => 'mw-checkbox-all' ),
|
||||
$this->msg( 'checkbox-all' )->text()
|
||||
);
|
||||
$links[] = Html::element(
|
||||
'a', array( 'href' => '#', 'id' => 'checkbox-none' ),
|
||||
'a', array( 'href' => '#', 'class' => 'mw-checkbox-none' ),
|
||||
$this->msg( 'checkbox-none' )->text()
|
||||
);
|
||||
$links[] = Html::element(
|
||||
'a', array( 'href' => '#', 'id' => 'checkbox-invert' ),
|
||||
'a', array( 'href' => '#', 'class' => 'mw-checkbox-invert' ),
|
||||
$this->msg( 'checkbox-invert' )->text()
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@
|
|||
$checkboxes.prop( 'checked', check );
|
||||
}
|
||||
|
||||
$( '#checkbox-all' ).click( function ( e ) {
|
||||
$( '.mw-checkbox-all' ).click( function ( e ) {
|
||||
selectAll( true );
|
||||
e.preventDefault();
|
||||
} );
|
||||
$( '#checkbox-none' ).click( function ( e ) {
|
||||
$( '.mw-checkbox-none' ).click( function ( e ) {
|
||||
selectAll( false );
|
||||
e.preventDefault();
|
||||
} );
|
||||
$( '#checkbox-invert' ).click( function ( e ) {
|
||||
$( '.mw-checkbox-invert' ).click( function ( e ) {
|
||||
$checkboxes.each( function () {
|
||||
$( this ).prop( 'checked', !$( this ).is( ':checked' ) );
|
||||
} );
|
||||
|
|
|
|||
Loading…
Reference in a new issue