1 <ul id="candidate_list">
2 <% @election.candidates.each do |candidate| %>
3 <% @current_candidate = candidate %>
4 <%= render(:partial => 'election/candidate_line')%>
9 function show_candidate_info(id) {
10 Element.hide($("show_candidate_link_" + id));
11 Element.show($("candidate_description_" + id));
12 Element.show($("hide_candidate_link_" + id));
15 function hide_candidate_info(id) {
16 Element.hide($("hide_candidate_link_" + id));
17 Element.hide($("candidate_description_" + id));
18 Element.show($("show_candidate_link_" + id));