diff --git a/app/views/habits/vote.js.erb b/app/views/habits/vote.js.erb index 919decaac6..abb5e13816 100644 --- a/app/views/habits/vote.js.erb +++ b/app/views/habits/vote.js.erb @@ -1,2 +1,2 @@ $('#habit_<%= @habit.id %>').replaceWith("<%= escape_javascript(render :partial => "habit", :locals => { :habit => @habit }) %>"); -$('#score').replaceWith("<%= @score %>"); +$('#score').html("<%= @score %>");