Index: trunk/extensions/Reviews/resources/jquery.reviewControl.js |
— | — | @@ -29,6 +29,10 @@ |
30 | 30 | for ( rating in ratings ) { |
31 | 31 | if ( ratings.hasOwnProperty( rating ) ) { |
32 | 32 | $tr.append( $( '<td>' ).append( |
| 33 | + $( '<label>' ).attr( { |
| 34 | + 'for': this.fieldName( 'ratingdiv' + rating ), |
| 35 | + 'class': 'review-ratings-label' |
| 36 | + } ).text( rating ), |
33 | 37 | $( '<div>' ) |
34 | 38 | .attr( { |
35 | 39 | 'id': this.fieldName( 'ratingdiv' + rating ), |
— | — | @@ -43,10 +47,7 @@ |
44 | 48 | 'id': this.fieldName( 'rating' + rating ), |
45 | 49 | 'class': 'review-specificratinginput' |
46 | 50 | } |
47 | | - ) ).prepend( $( '<label>' ).attr( { |
48 | | - 'for': this.fieldName( 'ratingdiv' + rating ), |
49 | | - 'class': 'review-ratings-label' |
50 | | - } ).text( rating ) ) |
| 51 | + ) ) |
51 | 52 | ) |
52 | 53 | ); |
53 | 54 | } |
— | — | @@ -105,10 +106,11 @@ |
106 | 107 | ).append( '<br>' ); |
107 | 108 | |
108 | 109 | $this.append( |
109 | | - this.ratingInput.prepend( $( '<label>' ).attr( { |
| 110 | + $( '<label>' ).attr( { |
110 | 111 | 'for': this.fieldName( 'rating' ), |
111 | 112 | 'class': 'review-rating-label' |
112 | | - } ).text( mw.msg( 'reviews-submission-rating' ) ) ) |
| 113 | + } ).text( mw.msg( 'reviews-submission-rating' ) ), |
| 114 | + this.ratingInput |
113 | 115 | ); |
114 | 116 | |
115 | 117 | $this.append( this.ratingsInput ); |
Index: trunk/extensions/Reviews/resources/reviews.pager.js |
— | — | @@ -10,7 +10,9 @@ |
11 | 11 | |
12 | 12 | $( document ).ready( function() { |
13 | 13 | |
14 | | - $( '.reviews-state-controls' ).reviewState(); |
| 14 | + $.each( $( '.reviews-state-controls' ), function( i, e ) { |
| 15 | + $( e ).reviewState(); |
| 16 | + } ); |
15 | 17 | |
16 | 18 | } ); |
17 | 19 | |
Index: trunk/extensions/Reviews/resources/reviews.special.js |
— | — | @@ -10,7 +10,9 @@ |
11 | 11 | |
12 | 12 | $( document ).ready( function() { |
13 | 13 | |
14 | | - $( '.reviews-state-controls' ).reviewState(); |
| 14 | + $.each( $( '.reviews-state-controls' ), function( i, e ) { |
| 15 | + $( e ).reviewState(); |
| 16 | + } ); |
15 | 17 | |
16 | 18 | } ); |
17 | 19 | |