Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | 'articlefeedbackv5-special-sort-rating' => 'Rating', |
66 | 66 | 'articlefeedbackv5-special-sort-label-before' => 'Sort by:', |
67 | 67 | 'articlefeedbackv5-special-sort-label-after' => '', |
68 | | - 'articlefeedbackv5-special-filter-label-before' => 'Show only:', |
| 68 | + 'articlefeedbackv5-special-filter-label-before' => 'Showing:', |
69 | 69 | 'articlefeedbackv5-special-filter-label-after' => '', |
70 | 70 | 'articlefeedbackv5-special-showing' => '$1 feedback posts on this page', // FIXME: Needs plural support on $1. |
71 | 71 | 'articlefeedbackv5-comment-link' => 'Permalink', |
Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.css |
— | — | @@ -251,4 +251,6 @@ |
252 | 252 | } |
253 | 253 | .articleFeedbackv5-feedback h3.negative .icon { |
254 | 254 | background: #bf0a0a url(images/bg_emoticon_negative.png) no-repeat center center; |
255 | | -} |
\ No newline at end of file |
| 255 | +} |
| 256 | + |
| 257 | +.sort-active { font-weight: bold; } |
Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -141,11 +141,13 @@ |
142 | 142 | dir = $.articleFeedbackv5special.sortDirection; |
143 | 143 | |
144 | 144 | $( '.articleFeedbackv5-sort-arrow' ).hide(); |
| 145 | + $( '.articleFeedbackv5-sort-link' ).removeClass( 'sort-active' ); |
145 | 146 | |
146 | 147 | $( '#articleFeedbackv5-sort-arrow-' + id ).text( |
147 | 148 | mw.msg( 'articlefeedbackv5-special-sort-' + dir ) |
148 | 149 | ); |
149 | 150 | $( '#articleFeedbackv5-sort-arrow-' + id ).show(); |
| 151 | + $( '#articleFeedbackv5-special-sort-' + id).addClass( 'sort-active' ); |
150 | 152 | } |
151 | 153 | |
152 | 154 | // Utility method for stripping long IDs down to the specific bits we care about. |
Index: trunk/extensions/ArticleFeedbackv5/SpecialArticleFeedbackv5.php |
— | — | @@ -178,7 +178,12 @@ |
179 | 179 | 'div', |
180 | 180 | array( 'id' => 'articleFeedbackv5-sort' ) |
181 | 181 | ) |
| 182 | + . Html::openElement( |
| 183 | + 'span', |
| 184 | + array( 'class' => 'articleFeedbackv5-sort-label' ) |
| 185 | + ) |
182 | 186 | . $this->msg( 'articlefeedbackv5-special-sort-label-before' )->escaped() |
| 187 | + . Html::closeElement( 'span' ) |
183 | 188 | . implode( $this->msg( 'pipe-separator' )->escaped(), $sortLabels ) |
184 | 189 | |
185 | 190 | . $this->msg( 'articlefeedbackv5-special-sort-label-after' )->escaped() |
— | — | @@ -187,7 +192,12 @@ |
188 | 193 | 'div', |
189 | 194 | array( 'id' => 'articleFeedbackv5-filter' ) |
190 | 195 | ) |
| 196 | + . Html::openElement( |
| 197 | + 'span', |
| 198 | + array( 'class' => 'articleFeedbackv5-filter-label' ) |
| 199 | + ) |
191 | 200 | . $this->msg( 'articlefeedbackv5-special-filter-label-before' )->escaped() |
| 201 | + . Html::closeElement( 'span' ) |
192 | 202 | . $filterSelect->getHTML() |
193 | 203 | . $this->msg( 'articlefeedbackv5-special-filter-label-after' )->escaped() |
194 | 204 | . Html::closeElement( 'div' ) |