Revision: 43531
Author:   aaron
Date:     2008-11-15 02:44:42 +0000 (Sat, 15 Nov 2008)

Log Message:
-----------
Set input sizes to make config column fit better for some extensions (like 
flaggedrevs)

Modified Paths:
--------------
    trunk/extensions/Configure/Configure.page.php

Modified: trunk/extensions/Configure/Configure.page.php
===================================================================
--- trunk/extensions/Configure/Configure.page.php       2008-11-15 02:40:09 UTC 
(rev 43530)
+++ trunk/extensions/Configure/Configure.page.php       2008-11-15 02:44:42 UTC 
(rev 43531)
@@ -732,7 +732,7 @@
                if( $type == 'text' || $type == 'int' ){
                        if( !$allowed )
                                return '<code>' . htmlspecialchars( 
(string)$default ) . '</code>';
-                       return Xml::input( "wp$conf", 45, (string)$default );
+                       return Xml::input( "wp$conf", $type=='text' ? 30 : 10, 
(string)$default );
                }
                if ( $type == 'image-url' ) {
                        if( !$allowed )
@@ -817,7 +817,7 @@
                                        if( $allowed )
                                                $text .= Xml::element( 'input', 
array(
                                                        'name' => 'wp' . $conf 
. "-key-{$i}",
-                                                       'type' => 'text', 
'value' => $key
+                                                       'type' => 'text', 
'value' => $key, 'size' => 15
                                                ) ) . "<br/>\n";
                                        else
                                                $text .= '<code>' . 
htmlspecialchars( $key ) . '</code>';
@@ -825,7 +825,7 @@
                                        if( $allowed )
                                                $text .= Xml::element( 'input', 
array(
                                                        'name' => 'wp' . $conf 
. "-val-{$i}",
-                                                       'type' => 'text', 
'value' => $val
+                                                       'type' => 'text', 
'value' => $val, 'size' => 15
                                                ) ) . "<br/>\n";
                                        else
                                                $text .= '<code>' . 
htmlspecialchars( $val ) . '</code>';



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

Reply via email to