We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue by sharp Saturday Sep 14, 2013 at 02:24 GMT Originally opened as muratguzel#41
In letsrate.js.erb:
$(function(){ $(".star").raty({ score: function(){ return $(this).attr('data-rating') }, number: function() { return $(this).attr('data-star-count') }, readOnly: function() { //console.log('sss') return false;//$(this).attr('data-readonly') == 'true' }, click: function(score, evt) { $.post('<%= Rails.application.class.routes.url_helpers.rate_path %>', { score: score, dimension: $(this).attr('data-dimension'), id: $(this).attr('data-id'), klass: $(this).attr('data-classname') }, function(data) { if(data) { // success code goes here ... } }); } }); });
If I add readOnly option , no matter it is true or false, the star can not be clicked.
readOnly
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Saturday Sep 14, 2013 at 02:24 GMT
Originally opened as muratguzel#41
In letsrate.js.erb:
If I add
readOnly
option , no matter it is true or false, the star can not be clicked.The text was updated successfully, but these errors were encountered: