Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [59295] trunk/extensions/Interwiki/SpecialInterwiki_body.php

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


raymond at svn

Nov 20, 2009, 11:54 AM

Post #1 of 1 (167 views)
Permalink
SVN: [59295] trunk/extensions/Interwiki/SpecialInterwiki_body.php

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

Revision: 59295
Author: raymond
Date: 2009-11-20 19:54:02 +0000 (Fri, 20 Nov 2009)

Log Message:
-----------
* Bug 17430: Make table columns sortable
* Consistency tweak: Move submit button into the input column
* Use common-separator instead of hardcoded comma

Modified Paths:
--------------
trunk/extensions/Interwiki/SpecialInterwiki_body.php

Modified: trunk/extensions/Interwiki/SpecialInterwiki_body.php
===================================================================
--- trunk/extensions/Interwiki/SpecialInterwiki_body.php 2009-11-20 19:14:24 UTC (rev 59294)
+++ trunk/extensions/Interwiki/SpecialInterwiki_body.php 2009-11-20 19:54:02 UTC (rev 59295)
@@ -101,7 +101,7 @@
'<td class="mw-input">' .
Xml::input( 'wpInterwikiReason', 60, $defaultreason, array( 'tabindex' => '1', 'id' => 'mw-interwiki-deletereason', 'maxlength' => '200' ) ) .
'</td></tr>' .
- '<tr><td class="mw-submit">' . Xml::submitButton( $button, array( 'id' => 'mw-interwiki-submit' ) ) .
+ '<tr><td></td><td class="mw-submit">' . Xml::submitButton( $button, array( 'id' => 'mw-interwiki-submit' ) ) .
Xml::hidden( 'wpInterwikiPrefix', $prefix ) .
Xml::hidden( 'wpInterwikiAction', $action ) .
Xml::hidden( 'wpEditToken', $token ) .
@@ -166,7 +166,7 @@
$old .
Xml::hidden( 'wpEditToken', $token ) .
'</td></tr>' .
- '<tr><td class="mw-submit">' . Xml::submitButton( $button, array( 'id' => 'mw-interwiki-submit' ) ) . '</td></tr>' .
+ '<tr><td></td><td class="mw-submit">' . Xml::submitButton( $button, array( 'id' => 'mw-interwiki-submit' ) ) . '</td></tr>' .
Xml::closeElement( 'table' ) .
Xml::closeElement( 'form' ) .
Xml::closeElement( 'fieldset' )
@@ -283,13 +283,13 @@
}

$out = "
- <table width='100%' class='mw-interwikitable wikitable body'>
+ <table width='100%' class='mw-interwikitable wikitable sortable body'>
<tr id='interwikitable-header'><th>$prefixmessage</th> <th>$urlmessage</th> <th>$localmessage</th> <th>$transmessage</th>";
// Privileged users can modify and delete existing prefixes
if( $admin ) {
$deletemessage = wfMsgHtml( 'delete' );
$editmessage = wfMsgHtml( 'edit' );
- $out .= '<th>' . wfMsgHtml( 'interwiki_edit' ) . '</th>';
+ $out .= '<th class="unsortable">' . wfMsgHtml( 'interwiki_edit' ) . '</th>';
}
$out .= "</tr>\n";

@@ -307,7 +307,7 @@
$out .= '<td class="mw-interwikitable-modify">';
$out .= $skin->link( $selfTitle, $editmessage, array(),
array( 'action' => 'edit', 'prefix' => $s->iw_prefix ) );
- $out .= ', ';
+ $out .= wfMsg( 'comma-separator' );
$out .= $skin->link( $selfTitle, $deletemessage, array(),
array( 'action' => 'delete', 'prefix' => $s->iw_prefix ) );
$out .= '</td>';



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

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.