Index: trunk/extensions/Ratings/allrating/index.html |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | <script type="text/javascript" > |
13 | 13 | $(document).ready(function() { |
14 | 14 | $('.example1').allRating({ |
15 | | - theme: 'bar', |
| 15 | + //theme: 'bar', |
16 | 16 | onClickEvent: function(input) { |
17 | 17 | alert(input.val()); |
18 | 18 | }, |
Index: trunk/extensions/Ratings/allrating/RatingsAllRating.php |
— | — | @@ -111,14 +111,14 @@ |
112 | 112 | array( |
113 | 113 | 'value' => $i, |
114 | 114 | ), |
115 | | - null |
| 115 | + $i |
116 | 116 | ); |
117 | 117 | } |
118 | 118 | |
119 | 119 | $output = Html::rawElement( |
120 | 120 | 'select', |
121 | 121 | array( |
122 | | - 'id' => "allrating_$ratingStarNr", |
| 122 | + 'name' => "allrating_$ratingStarNr", |
123 | 123 | 'class' => 'allrating', |
124 | 124 | 'page' => $parameters['page']->getFullText(), |
125 | 125 | 'tag' => $parameters['tag'], |
Index: trunk/extensions/Ratings/allrating/ext.ratings.allrating.js |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | */ |
9 | 9 | |
10 | 10 | (function($) { $( document ).ready( function() { |
11 | | - |
| 11 | + |
12 | 12 | var canRate = true; // TODO |
13 | 13 | |
14 | 14 | if ( !canRate && !window.wgRatingsShowDisabled ) { |
— | — | @@ -21,16 +21,15 @@ |
22 | 22 | */ |
23 | 23 | (function setupRatingElements() { |
24 | 24 | $.each($(".allrating"), function(i,v) { |
25 | | - var self = $(this); |
| 25 | + var self = $(this); |
26 | 26 | |
27 | 27 | self.allRating({ |
28 | 28 | onClickEvent: function(input) { |
29 | | - // TODO |
| 29 | + alert(input.val()); |
30 | 30 | }, |
31 | 31 | showHover: false |
32 | | - }); |
| 32 | + }); |
33 | 33 | }); |
34 | 34 | })(); |
35 | 35 | |
36 | | - |
37 | 36 | } ); })(jQuery); |
\ No newline at end of file |