Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -129,6 +129,7 @@ |
130 | 130 | .mw-htmlform-multiselect-flatlist div.mw-htmlform-multiselect-item { |
131 | 131 | display: inline; |
132 | 132 | margin-right: 1em; |
| 133 | + white-space: nowrap; |
133 | 134 | } |
134 | 135 | |
135 | 136 | input#wpSummary { |
Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -1403,6 +1403,14 @@ |
1404 | 1404 | * Multi-select field |
1405 | 1405 | */ |
1406 | 1406 | class HTMLMultiSelectField extends HTMLFormField { |
| 1407 | + |
| 1408 | + public function __construct( $params ){ |
| 1409 | + parent::__construct( $params ); |
| 1410 | + if( isset( $params['flatlist'] ) ){ |
| 1411 | + $this->mClass .= ' mw-htmlform-multiselect-flatlist'; |
| 1412 | + } |
| 1413 | + } |
| 1414 | + |
1407 | 1415 | function validate( $value, $alldata ) { |
1408 | 1416 | $p = parent::validate( $value, $alldata ); |
1409 | 1417 | |
— | — | @@ -1454,7 +1462,7 @@ |
1455 | 1463 | $attribs + $thisAttribs ); |
1456 | 1464 | $checkbox .= ' ' . Html::rawElement( 'label', array( 'for' => "{$this->mID}-$info" ), $label ); |
1457 | 1465 | |
1458 | | - $html .= Html::rawElement( 'div', array( 'class' => 'mw-htmlform-multiselect-item' ), $checkbox ); |
| 1466 | + $html .= ' ' . Html::rawElement( 'div', array( 'class' => 'mw-htmlform-multiselect-item' ), $checkbox ); |
1459 | 1467 | } |
1460 | 1468 | } |
1461 | 1469 | |
Index: trunk/phase3/includes/specials/SpecialBlockList.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | wfMsg( 'blocklist-tempblocks' ) => 'tempblocks', |
78 | 78 | wfMsg( 'blocklist-addressblocks' ) => 'addressblocks', |
79 | 79 | ), |
80 | | - 'cssclass' => 'mw-htmlform-multiselect-flatlist', |
| 80 | + 'flatlist' => true, |
81 | 81 | ), |
82 | 82 | ); |
83 | 83 | $form = new HTMLForm( $fields ); |