X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/49997d3063f434e33e64040fdb57ba30f4e4c2a8..86087be54da5f8c3af8fa475fafebd0c5527da9f:/app/views/quickvote/_candidate_list.rhtml diff --git a/app/views/quickvote/_candidate_list.rhtml b/app/views/quickvote/_candidate_list.rhtml index 5c76d62..4ec3db8 100644 --- a/app/views/quickvote/_candidate_list.rhtml +++ b/app/views/quickvote/_candidate_list.rhtml @@ -1,17 +1,17 @@ -<% %> -<% if @flash[:candlist] %> +<% if flash[:candidate_names] %> <% end %> -<%= form_remote_tag :update => 'candlist', - :url => { :action => 'add_candidate' } %> +<% form_remote_tag(:update => 'candidate_names', + :url => { :action => 'add_candidate' }, + :complete => "Field.focus('ajax_newcandidate')") do %>

<%= text_field "ajax", "newcandidate", :size => 40 %> <%= submit_tag "Add(+)" %>

-<%= end_form_tag %> +<% end %>