projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved files around a bit more.
[selectricity]
/
app
/
views
/
quickvote
/
_candidate_list.rhtml
diff --git
a/app/views/quickvote/_candidate_list.rhtml
b/app/views/quickvote/_candidate_list.rhtml
index 1176e9768d4afb7aa24b7c6d8a3646671226b574..4ec3db8b24014e9be500974187a93e2fa2132367 100644
(file)
--- a/
app/views/quickvote/_candidate_list.rhtml
+++ b/
app/views/quickvote/_candidate_list.rhtml
@@
-1,17
+1,17
@@
-<% %>
<!-- the list of candidates -->
<!-- the list of candidates -->
-<% if
@flash[:candlist
] %>
+<% if
flash[:candidate_names
] %>
<ul>
<ul>
- <% for cand in
@flash[:candlist
] %>
- <li><%= cand.capitalize %></li>
+ <% for cand in
flash[:candidate_names
] %>
+ <li><%=
h
cand.capitalize %></li>
<% end %>
</ul>
<% end %>
<% end %>
</ul>
<% 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 %>
<p>
<%= text_field "ajax", "newcandidate", :size => 40 %>
<p>
<%= text_field "ajax", "newcandidate", :size => 40 %>
- <%= submit_tag "Add" %>
+ <%= submit_tag "Add
(+)
" %>
</p>
</p>
-<%
= end_form_tag
%>
+<%
end
%>
Benjamin Mako Hill
||
Want to submit a patch?