Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -513,7 +513,7 @@ |
514 | 514 | $htmlOut .= Xml::tags( 'td', array(), Xml::label( wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) ); |
515 | 515 | $htmlOut .= Xml::tags( 'td', array(), Xml::check( 'geotargeted', false, wfArrayMerge( $readonly, array( 'value' => 1, 'id' => 'geotargeted' ) ) ) ); |
516 | 516 | $htmlOut .= Xml::closeElement( 'tr' ); |
517 | | - $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector' ) ); |
| 517 | + $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector', 'style'=>'display:none;' ) ); |
518 | 518 | $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), wfMsgHtml( 'centralnotice-countries' ) ); |
519 | 519 | $htmlOut .= Xml::tags( 'td', array(), $this->geoMultiSelector() ); |
520 | 520 | $htmlOut .= Xml::closeElement( 'tr' ); |
— | — | @@ -832,7 +832,11 @@ |
833 | 833 | $htmlOut .= Xml::tags( 'td', array(), Xml::label( wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) ); |
834 | 834 | $htmlOut .= Xml::tags( 'td', array(), Xml::check( 'geotargeted', $isGeotargeted, wfArrayMerge( $readonly, array( 'value' => $row->not_name, 'id' => 'geotargeted' ) ) ) ); |
835 | 835 | $htmlOut .= Xml::closeElement( 'tr' ); |
836 | | - $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector' ) ); |
| 836 | + if ( $isGeotargeted ) { |
| 837 | + $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector' ) ); |
| 838 | + } else { |
| 839 | + $htmlOut .= Xml::openElement( 'tr', array( 'id'=>'geoMultiSelector', 'style'=>'display:none;' ) ); |
| 840 | + } |
837 | 841 | $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), wfMsgHtml( 'centralnotice-countries' ) ); |
838 | 842 | $htmlOut .= Xml::tags( 'td', array(), $this->geoMultiSelector( $countries ) ); |
839 | 843 | $htmlOut .= Xml::closeElement( 'tr' ); |
Index: trunk/extensions/CentralNotice/centralnotice.css |
— | — | @@ -47,9 +47,6 @@ |
48 | 48 | border-style: solid; |
49 | 49 | border-width: 1px; |
50 | 50 | } |
51 | | -#preferences tr#geoMultiSelector { |
52 | | - display: none; |
53 | | -} |
54 | 51 | |
55 | 52 | /* Vector-specific definitions */ |
56 | 53 | body.skin-vector #preferences fieldset.prefsection { |