// 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()
);
$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' ) );
} );