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

Revision: 94617
Author:   devayon
Date:     2011-08-16 10:47:15 +0000 (Tue, 16 Aug 2011)
Log Message:
-----------
minor cleanup

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php

Modified: 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
===================================================================
--- 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php    
    2011-08-16 10:46:05 UTC (rev 94616)
+++ 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php    
    2011-08-16 10:47:15 UTC (rev 94617)
@@ -341,7 +341,6 @@
         *
         * @global OutputPage $wgOut
         * @global string $smwgScriptPath
-        * @param string $errors
         * @return string
         */
        protected function getQueryFormBox() {
@@ -405,7 +404,7 @@
                if ( !$smwgQSortingSupport ) return array();
 
                $params = array();
-               //loading all values from form
+               // loading all values from form
                $orderValues = $wgRequest->getArray( 'order' );
                $propertyValues = $wgRequest->getArray( 'property' );
                $propertyLabelValues = $wgRequest->getArray( 'prop_label' );
@@ -680,7 +679,7 @@
                                $result .= Html::openElement( 'div', array( 
'id' => "sort_div_$i", 'class' => 'smwsort' ) );
                                $result .= '<span class="smwquisortlabel"><span 
class="smw-remove"><a href="javascript:removePOInstance(\'sort_div_' . $i . 
'\')"><img src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . 
wfMsg( 'smw_qui_delete' ) . '"></a></span>';
                                $result .= wfMsg( 'smw_qui_property' ) . 
'</span>';
-                               $result .= Html::input( 'property[' . $i . ']', 
$propertyValues[$key], 'text', array( 'size' => '35', 'id' => "property$i" ) ) 
. "\n";
+                               $result .= Html::input( 'property[' . $i . ']', 
$propertyValues[$key], 'text', array( 'size' => '25', 'id' => "property$i" ) ) 
. "\n";
                                $result .= Html::openElement( 'select', array( 
'name' => "order[$i]" ) );
 
                                $if1 = ( !is_array( $orderValues ) || 
!array_key_exists( $key, $orderValues ) || $orderValues[$key] == 'NONE' );
@@ -1127,7 +1126,7 @@
 
                foreach ( $orders as $i => $order ) {
                        $result .=  "<div id=\"sort_div_$i\">" . wfMsg( 
'smw_ask_sortby' ) . ' <input type="text" name="sort[' . $i . ']" value="' .
-                                       htmlspecialchars( $sorts[$i] ) . "\" 
size=\"35\"/>\n" . '<select name="order[' . $i . ']"><option ';
+                                       htmlspecialchars( $sorts[$i] ) . "\" 
size=\"25\"/>\n" . '<select name="order[' . $i . ']"><option ';
                                if ( $order == 'ASC' ) $result .= 
'selected="selected" ';
                        $result .=  'value="ASC">' . wfMsg( 'smw_qui_ascorder' 
) . '</option><option ';
                                if ( $order == 'DESC' ) $result .= 
'selected="selected" ';
@@ -1137,7 +1136,7 @@
                        $result .= "</div>\n";
                }
 
-               $hidden .=  '<div id="sorting_starter" style="display: none">' 
. wfMsg( 'smw_ask_sortby' ) . ' <input type="text" size="35" />' . "\n";
+               $hidden .=  '<div id="sorting_starter" style="display: none">' 
. wfMsg( 'smw_ask_sortby' ) . ' <input type="text" size="25" />' . "\n";
                $hidden .= ' <select name="order_num">' . "\n";
                $hidden .= '    <option value="ASC">' . wfMsg( 
'smw_qui_ascorder' ) . "</option>\n";
                $hidden .= '    <option value="DESC">' . wfMsg( 
'smw_qui_descorder' ) . "</option>\n</select>\n";
@@ -1571,7 +1570,7 @@
         *
         * Required by getFormatSelectBox() to recieve form elements from the 
Web.
         * UIs may need to overload processFormatOptions(),
-        * getgetFormatSelectBox() and getFormatSelectBox() to change behavior.
+        * processFormatSelectBox() and getFormatSelectBox() to change behavior.
         *
         * @param WebRequest $wgRequest
         * @return boolean true if format options were requested and returned, 
else false


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

Reply via email to