%= form_remote_tag :url => {:action => 'comment', :id => @article}, :update => 'comments_div', :loading => 'commentLoading()', :complete => 'commentComplete()', :html => {:id => 'commentform', :class => 'comments' } %>
Name: <%= text_field "comment", "author" %> (<%= link_to_function("leave url/email »", "Effect.toggle('extra_fields', 'blind', {duration: .3})") %>)
Email: <%= content_tag('small', "(#{link_to('gravatar', 'http://gravatar.com')} enabled)") if this_blog.use_gravatar %> <%= text_field "comment", "email" %>
Url: <%= text_field "comment", "url" %>
Comments: <%= content_tag('small', link_to("Textile enabled", "http://hobix.com/textile/")) if this_blog.comment_text_filter.include? 'textile' %> <%= content_tag('small', link_to("Markdown enabled", "http://daringfireball.net/projects/markdown/")) if this_blog.comment_text_filter.include? 'markdown' %> <%= text_area 'comment', 'body' %>
<%= submit_to_remote('preview', 'Preview!', :update => 'preview', :complete => "Element.show('preview')", :url => { :action => 'comment_preview' }) %> <%= submit_tag 'Submit', :onclick => "$('commentform').onsubmit();this.disabled=true;Element.hide('preview');return false;" %> <%= image_tag '/images/theme/spinner.gif', :id => 'spinner', :style => 'display:none' %>