Skip to content

Commit

Permalink
add support for turbolinks
Browse files Browse the repository at this point in the history
  • Loading branch information
microweb10 committed Mar 2, 2015
1 parent 2bc9b3f commit fcda427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/letsrate/templates/letsrate.js.erb
@@ -1,7 +1,7 @@
$.fn.raty.defaults.path = "/assets";
$.fn.raty.defaults.half_show = true;

$(function(){
$(document).on("ready page:load",function(){
$(".star").each(function() {
var $readonly = ($(this).attr('data-readonly') == 'true');
$(this).raty({
Expand Down

0 comments on commit fcda427

Please sign in to comment.