r71568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71567‎ | r71568 | r71569 >
Date:16:04, 24 August 2010
Author:catrope
Status:deferred
Tags:
Comment:
CentralNotice: Use the functionality implemented in r71567 to disable shift-select for the checkboxes on Special:CentralNotice
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -481,24 +481,24 @@
482482 $fields[] =
483483 Xml::check( 'enabled[]', ( $row->not_enabled == '1' ),
484484 wfArrayMerge( $readonly,
485 - array( 'value' => $row->not_name ) ) );
 485+ array( 'value' => $row->not_name, 'class' => 'noshiftselect' ) ) );
486486
487487 // Preferred
488488 $fields[] =
489489 Xml::check( 'preferred[]', ( $row->not_preferred == '1' ),
490490 wfArrayMerge( $readonly,
491 - array( 'value' => $row->not_name ) ) );
 491+ array( 'value' => $row->not_name, 'class' => 'noshiftselect' ) ) );
492492
493493 // Locked
494494 $fields[] =
495495 Xml::check( 'locked[]', ( $row->not_locked == '1' ),
496496 wfArrayMerge( $readonly,
497 - array( 'value' => $row->not_name ) ) );
 497+ array( 'value' => $row->not_name, 'class' => 'noshiftselect' ) ) );
498498
499499 if ( $this->editable ) {
500500 // Remove
501501 $fields[] = Xml::check( 'removeNotices[]', false,
502 - array( 'value' => $row->not_name ) );
 502+ array( 'value' => $row->not_name, 'class' => 'noshiftselect' ) );
503503 }
504504
505505 // If campaign is currently active, set special class on table row.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r71567Allow class="noshiftselect" to disable the multiple-select-on-shift-click beh...catrope16:01, 24 August 2010

Status & tagging log