http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95968

Revision: 95968
Author:   krinkle
Date:     2011-09-01 12:11:39 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Use .mw-datatable where TablePager is used in extensions.
* Should be fairly rare as both getTableClasses() and getBodyStart() in 
TablePager have good defaults. But in cases where both are overridden it needs 
to be fixed.
* Then there are the bad boys that used the TablePager css class for a table 
that wasn't generated by TablePager at all. Oohooh!

(Follows-up r95960)

Modified Paths:
--------------
    trunk/extensions/CloseWikis/CloseWikis.list.php
    trunk/extensions/SecurePoll/includes/pages/DetailsPage.php
    trunk/extensions/SecurePoll/includes/pages/TranslatePage.php

Modified: trunk/extensions/CloseWikis/CloseWikis.list.php
===================================================================
--- trunk/extensions/CloseWikis/CloseWikis.list.php     2011-09-01 12:09:22 UTC 
(rev 95967)
+++ trunk/extensions/CloseWikis/CloseWikis.list.php     2011-09-01 12:11:39 UTC 
(rev 95968)
@@ -35,7 +35,7 @@
 
                $this->setHeaders();
                $wgOut->addWikiMsg( 'closewikis-list-intro' );
-               $wgOut->addHTML( '<table class="TablePager" style="width: 
100%"><tr>' );
+               $wgOut->addHTML( '<table class="mw-datatable TablePager" 
style="width: 100%"><tr>' );
                foreach( array( 'wiki', 'by', 'timestamp', 'dispreason' ) as 
$column )
                        $wgOut->addHTML( '<th>' . wfMsgExt( 
"closewikis-list-header-{$column}", 'parseinline' ) . '</th>' );
                $wgOut->addHTML( '</tr>' );

Modified: trunk/extensions/SecurePoll/includes/pages/DetailsPage.php
===================================================================
--- trunk/extensions/SecurePoll/includes/pages/DetailsPage.php  2011-09-01 
12:09:22 UTC (rev 95967)
+++ trunk/extensions/SecurePoll/includes/pages/DetailsPage.php  2011-09-01 
12:11:39 UTC (rev 95968)
@@ -50,7 +50,7 @@
                        'securepoll-details-title', $this->voteId ) );
 
                $wgOut->addHTML(
-                       '<table class="TablePager">' .
+                       '<table class="mw-datatable TablePager">' .
                        $this->detailEntry( 'securepoll-header-id', 
$row->vote_id ) .
                        $this->detailEntry( 'securepoll-header-timestamp', 
$row->vote_timestamp ) .
                        $this->detailEntry( 'securepoll-header-voter-name', 
$row->voter_name ) .
@@ -66,7 +66,7 @@
 
                # Show voter properties
                $wgOut->addHTML( '<h2>' . wfMsgHTML( 
'securepoll-voter-properties' ) . "</h2>\n" );
-               $wgOut->addHTML( '<table class="TablePager">' );
+               $wgOut->addHTML( '<table class="mw-datatable TablePager">' );
                $props = SecurePoll_Voter::decodeProperties( 
$row->voter_properties );
                foreach ( $props as $name => $value ) {
                        if ( is_array( $value ) ) {
@@ -89,7 +89,7 @@
                $res = $db->query( $sql, __METHOD__ );
                if ( $res->numRows() ) {
                        $wgOut->addHTML( '<h2>' . wfMsgHTML( 
'securepoll-cookie-dup-list' ) . '</h2>' );
-                       $wgOut->addHTML( '<table class="TablePager">' );
+                       $wgOut->addHTML( '<table class="mw-datatable 
TablePager">' );
                        foreach ( $res as $row ) {
                                $voter = $this->context->getVoter( $row->voter 
);
                                $wgOut->addHTML(

Modified: trunk/extensions/SecurePoll/includes/pages/TranslatePage.php
===================================================================
--- trunk/extensions/SecurePoll/includes/pages/TranslatePage.php        
2011-09-01 12:09:22 UTC (rev 95967)
+++ trunk/extensions/SecurePoll/includes/pages/TranslatePage.php        
2011-09-01 12:11:39 UTC (rev 95968)
@@ -68,7 +68,7 @@
                $action = $this->getTitle( $secondary )->getLocalUrl( 
'action=submit' );
                $s = 
                        Xml::openElement( 'form', array( 'method' => 'post', 
'action' => $action ) ) .
-                       '<table class="TablePager securepoll-trans-table">' .
+                       '<table class="mw-datatable TablePager 
securepoll-trans-table">' .
                        '<col class="securepoll-col-trans-id" width="1*"/>' .
                        '<col class="securepoll-col-primary" width="30%"/>' .
                        '<col class="securepoll-col-secondary"/>' .


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to