X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/404bd293fe621a270748df828c67e507b350920b..58fb91dde4b0a16c1a764dda66e31bc57565e41f:/app/views/quickvote/_candidate_list.rhtml diff --git a/app/views/quickvote/_candidate_list.rhtml b/app/views/quickvote/_candidate_list.rhtml index 1176e97..ddb47e5 100644 --- a/app/views/quickvote/_candidate_list.rhtml +++ b/app/views/quickvote/_candidate_list.rhtml @@ -1,17 +1,18 @@ <% %> -<% if @flash[:candlist] %> +<% if flash[:candlist] %> <% end %> -<%= form_remote_tag :update => 'candlist', - :url => { :action => 'add_candidate' } %> +<% form_remote_tag(:update => 'candlist', + :url => { :action => 'add_candidate' }, + :complete => "Field.focus('ajax_newcandidate')") do %>

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

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