http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72953
Revision: 72953
Author: kaldari
Date: 2010-09-14 01:51:13 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
need to set geoMultiSelector display programmatically
Modified Paths:
--------------
trunk/extensions/CentralNotice/SpecialCentralNotice.php
trunk/extensions/CentralNotice/centralnotice.css
Modified: trunk/extensions/CentralNotice/SpecialCentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialCentralNotice.php 2010-09-14
01:44:08 UTC (rev 72952)
+++ trunk/extensions/CentralNotice/SpecialCentralNotice.php 2010-09-14
01:51:13 UTC (rev 72953)
@@ -513,7 +513,7 @@
$htmlOut .= Xml::tags( 'td', array(), Xml::label(
wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) );
$htmlOut .= Xml::tags( 'td', array(), Xml::check(
'geotargeted', false, wfArrayMerge( $readonly, array( 'value' => 1, 'id' =>
'geotargeted' ) ) ) );
$htmlOut .= Xml::closeElement( 'tr' );
- $htmlOut .= Xml::openElement( 'tr', array(
'id'=>'geoMultiSelector' ) );
+ $htmlOut .= Xml::openElement( 'tr', array(
'id'=>'geoMultiSelector', 'style'=>'display:none;' ) );
$htmlOut .= Xml::tags( 'td', array( 'valign' => 'top'
), wfMsgHtml( 'centralnotice-countries' ) );
$htmlOut .= Xml::tags( 'td', array(),
$this->geoMultiSelector() );
$htmlOut .= Xml::closeElement( 'tr' );
@@ -832,7 +832,11 @@
$htmlOut .= Xml::tags( 'td', array(), Xml::label(
wfMsgHtml( 'centralnotice-geotargeted' ), 'geotargeted' ) );
$htmlOut .= Xml::tags( 'td', array(), Xml::check(
'geotargeted', $isGeotargeted, wfArrayMerge( $readonly, array( 'value' =>
$row->not_name, 'id' => 'geotargeted' ) ) ) );
$htmlOut .= Xml::closeElement( 'tr' );
- $htmlOut .= Xml::openElement( 'tr', array(
'id'=>'geoMultiSelector' ) );
+ if ( $isGeotargeted ) {
+ $htmlOut .= Xml::openElement( 'tr', array(
'id'=>'geoMultiSelector' ) );
+ } else {
+ $htmlOut .= Xml::openElement( 'tr', array(
'id'=>'geoMultiSelector', 'style'=>'display:none;' ) );
+ }
$htmlOut .= Xml::tags( 'td', array( 'valign' => 'top'
), wfMsgHtml( 'centralnotice-countries' ) );
$htmlOut .= Xml::tags( 'td', array(),
$this->geoMultiSelector( $countries ) );
$htmlOut .= Xml::closeElement( 'tr' );
Modified: trunk/extensions/CentralNotice/centralnotice.css
===================================================================
--- trunk/extensions/CentralNotice/centralnotice.css 2010-09-14 01:44:08 UTC
(rev 72952)
+++ trunk/extensions/CentralNotice/centralnotice.css 2010-09-14 01:51:13 UTC
(rev 72953)
@@ -47,9 +47,6 @@
border-style: solid;
border-width: 1px;
}
-#preferences tr#geoMultiSelector {
- display: none;
-}
/* Vector-specific definitions */
body.skin-vector #preferences fieldset.prefsection {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs