Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php |
— | — | @@ -341,7 +341,6 @@ |
342 | 342 | * |
343 | 343 | * @global OutputPage $wgOut |
344 | 344 | * @global string $smwgScriptPath |
345 | | - * @param string $errors |
346 | 345 | * @return string |
347 | 346 | */ |
348 | 347 | protected function getQueryFormBox() { |
— | — | @@ -405,7 +404,7 @@ |
406 | 405 | if ( !$smwgQSortingSupport ) return array(); |
407 | 406 | |
408 | 407 | $params = array(); |
409 | | - //loading all values from form |
| 408 | + // loading all values from form |
410 | 409 | $orderValues = $wgRequest->getArray( 'order' ); |
411 | 410 | $propertyValues = $wgRequest->getArray( 'property' ); |
412 | 411 | $propertyLabelValues = $wgRequest->getArray( 'prop_label' ); |
— | — | @@ -680,7 +679,7 @@ |
681 | 680 | $result .= Html::openElement( 'div', array( 'id' => "sort_div_$i", 'class' => 'smwsort' ) ); |
682 | 681 | $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>'; |
683 | 682 | $result .= wfMsg( 'smw_qui_property' ) . '</span>'; |
684 | | - $result .= Html::input( 'property[' . $i . ']', $propertyValues[$key], 'text', array( 'size' => '35', 'id' => "property$i" ) ) . "\n"; |
| 683 | + $result .= Html::input( 'property[' . $i . ']', $propertyValues[$key], 'text', array( 'size' => '25', 'id' => "property$i" ) ) . "\n"; |
685 | 684 | $result .= Html::openElement( 'select', array( 'name' => "order[$i]" ) ); |
686 | 685 | |
687 | 686 | $if1 = ( !is_array( $orderValues ) || !array_key_exists( $key, $orderValues ) || $orderValues[$key] == 'NONE' ); |
— | — | @@ -1127,7 +1126,7 @@ |
1128 | 1127 | |
1129 | 1128 | foreach ( $orders as $i => $order ) { |
1130 | 1129 | $result .= "<div id=\"sort_div_$i\">" . wfMsg( 'smw_ask_sortby' ) . ' <input type="text" name="sort[' . $i . ']" value="' . |
1131 | | - htmlspecialchars( $sorts[$i] ) . "\" size=\"35\"/>\n" . '<select name="order[' . $i . ']"><option '; |
| 1130 | + htmlspecialchars( $sorts[$i] ) . "\" size=\"25\"/>\n" . '<select name="order[' . $i . ']"><option '; |
1132 | 1131 | if ( $order == 'ASC' ) $result .= 'selected="selected" '; |
1133 | 1132 | $result .= 'value="ASC">' . wfMsg( 'smw_qui_ascorder' ) . '</option><option '; |
1134 | 1133 | if ( $order == 'DESC' ) $result .= 'selected="selected" '; |
— | — | @@ -1137,7 +1136,7 @@ |
1138 | 1137 | $result .= "</div>\n"; |
1139 | 1138 | } |
1140 | 1139 | |
1141 | | - $hidden .= '<div id="sorting_starter" style="display: none">' . wfMsg( 'smw_ask_sortby' ) . ' <input type="text" size="35" />' . "\n"; |
| 1140 | + $hidden .= '<div id="sorting_starter" style="display: none">' . wfMsg( 'smw_ask_sortby' ) . ' <input type="text" size="25" />' . "\n"; |
1142 | 1141 | $hidden .= ' <select name="order_num">' . "\n"; |
1143 | 1142 | $hidden .= ' <option value="ASC">' . wfMsg( 'smw_qui_ascorder' ) . "</option>\n"; |
1144 | 1143 | $hidden .= ' <option value="DESC">' . wfMsg( 'smw_qui_descorder' ) . "</option>\n</select>\n"; |
— | — | @@ -1571,7 +1570,7 @@ |
1572 | 1571 | * |
1573 | 1572 | * Required by getFormatSelectBox() to recieve form elements from the Web. |
1574 | 1573 | * UIs may need to overload processFormatOptions(), |
1575 | | - * getgetFormatSelectBox() and getFormatSelectBox() to change behavior. |
| 1574 | + * processFormatSelectBox() and getFormatSelectBox() to change behavior. |
1576 | 1575 | * |
1577 | 1576 | * @param WebRequest $wgRequest |
1578 | 1577 | * @return boolean true if format options were requested and returned, else false |