Savage Beast plugin: Question on the reply form

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 …

<%= 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| -%>
<%= f.text_area :body, :rows => 8 %>
<%= submit_tag _("Save Reply") %>or <%= link_to_function _('cancel'), "$('reply').hide()" %>
<% end -%>
<%= 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs