title: jquery - rating plugin
body: <p>I am trying to display current rate and allowing re-rating on the same inputs, but it doesn't work. I could display current rate but disable re-rating or vice versa. I am using that plugin: <a href="http://www.fyneworks.com/jquery/star-rating/#tab-API" rel="nofollow">http://www.fyneworks.com/jquery/star-rating/#tab-API</a> .
  Here is what I got:</p>
  
  <p>Here I got version with properly display current rate:</p>
  
  <pre><code>$('.voting-star').rating().rating('select', '3');//
  
          $('.voting-star').rating({
              callback: function(value, link){
                  alert(value);
                  $.ajax({
                      url: '/false/address/xxx?rate=' + value + '&amp;photo_id=123425',
                  });
              }
          });
  </code></pre>
  
  <p>And here is version with allowed re-rating (but when site is ready I can see that 'alerts' shows many times - and the same number AJAX request is started:</p>
  
  <pre><code>    $('.voting-star').rating({
          callback: function(value, link){
              alert(value);
              $.ajax({
                  url: '/false/address/xxx?rate=' + value + '&amp;photo_id=234234',
              });
          }
      });
  
      $('.voting-star').rating().rating('select', '%{$current_img-&gt;getLoggedUserRate()}%');
  </code></pre>