Hello! I have integrated the Savage Beast plugin with my site. For
some reason, during the integration, the standard large black reply
form that gets displayed when a user hits "Reply to topic", is
*always* getting displayed at the bottom of the screen ... before the
user hits "Reply to topic". The built in "cancel" link on
the editbox
will not remove the form, and neither will "Saving a Reply". The code
looks like this ...
<div id="reply" class="editbox">
<div class="container">
<%= content_tag ''p'', h(flash[:bad_reply]), :class =>
''notice'' if
flash[:bad_reply] %>
<% form_for :post, :url => posts_path(:forum_id => @forum, :topic_id
=> @topic, :page => @topic.last_page) do |f| -%>
<table width="100%" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" width="70%">
<%= f.text_area :body, :rows => 8 %>
</td>
</tr>
<tr>
<td valign="bottom"
style="padding-bottom:15px;">
<%= submit_tag _("Save Reply") %><span
class="button_or">or <%link_to_function
_(''cancel''), "$(''reply'').hide()"
%></span>
</td>
</tr>
</table>
<% end -%>
</div>
</div>
<%= javascript_tag "$(''reply'').hide();"%>
<% end %>
<% end %>
I would think <%= javascript_tag
"$(''reply'').hide();"%> would hide the
reply form after the Save or Cancel action. Does anyone have any
ideas? I want the reply form to be hidden until the user actually
hits "Reply to Topic" and then I also want it to go away when the user
cancels or Saves a reply.
Thanks in advance!!!
LAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---