Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -727,7 +727,8 @@ |
728 | 728 | } |
729 | 729 | |
730 | 730 | # Add main checkboxes/selects |
731 | | - $form .= Xml::openElement( 'span', array( 'id' => 'mw-fr-ratingselects' ) ); |
| 731 | + $form .= Xml::openElement( 'span', |
| 732 | + array( 'id' => 'mw-fr-ratingselects', 'class' => 'fr-rating-options' ) ); |
732 | 733 | $form .= self::ratingInputs( $user, $flags, (bool)$disabled, (bool)$frev ); |
733 | 734 | $form .= Xml::closeElement( 'span' ); |
734 | 735 | # Add review notes input |
— | — | @@ -870,7 +871,7 @@ |
871 | 872 | if ( $size > 6 ) { |
872 | 873 | $attribs = array( 'name' => "wp$quality", 'id' => "wp$quality", |
873 | 874 | 'onchange' => "FlaggedRevsReview.updateRatingForm()" ); |
874 | | - $item .= Xml::openElement( 'select', $attribs ); |
| 875 | + $item .= Xml::openElement( 'select', $attribs ) . "\n"; |
875 | 876 | foreach ( $levels as $i => $name ) { |
876 | 877 | $optionClass = array( 'class' => "fr-rating-option-$i" ); |
877 | 878 | $item .= Xml::option( FlaggedRevs::getTagMsg( $name ), $i, |
— | — | @@ -897,11 +898,7 @@ |
898 | 899 | $items[] = $item; |
899 | 900 | } |
900 | 901 | } |
901 | | - # Wrap visible controls in a span |
902 | | - $form = Xml::openElement( 'span', array( 'class' => 'fr-rating-options' ) ) . "\n"; |
903 | | - $form .= implode( '   ', $items ); |
904 | | - $form .= Xml::closeElement( 'span' ) . "\n"; |
905 | | - return $form; |
| 902 | + return implode( '   ', $items ); |
906 | 903 | } |
907 | 904 | |
908 | 905 | private static function ratingFormTags( $user, $selected ) { |