Clean up rating partials

This commit is contained in:
James Mason 2018-02-09 17:19:33 -08:00
parent 73c5c3c97a
commit 9e10678542
10 changed files with 131 additions and 92 deletions

View file

@ -1 +1,10 @@
$('table#myrating').replaceWith("<%= escape_javascript(render :partial => 'voting') %>");
$('table#myrating').replaceWith(
"<%= escape_javascript(render 'voting', \
event: @event, \
show_votes: @program.show_voting?, \
max_rating: @program.rating, \
voting_period: @program.voting_period?, \
votes: @votes, \
conference_id: @conference.short_title \
) %>"
);