refinery/refinerycms-inquiries — pull request #98 by keram (2012-12-18 07:06:21+00:00)
Title: ajaxified inquiry form

hello guys,
improved inquiry form with ajax.
properties:
- in default configuration it behaves like before only is submitted through ajax
- when javascript is not available it fallback to current old implementation
- you can load form through ajax on other pages than contact
You just need put this snippet of code where you want:

<%= render :partial => 'refinery/inquiries/inquiries/javascripts' %>
- customizable and configurable
you can set form id, form holder,some callbacks etc.
for example you want initialize inquiry form only after your custom event (maybe click on button)
then you may put this snippet of code:

<%= render :partial => 'refinery/inquiries/inquiries/javascripts', :locals => {:initialize_onload => false} %>
contact form
<% content_for :javascripts do %>

<% end %>
and more..

In next step I would like write documentation and implement some polyfill for https://github.com/refinery/refinerycms-inquiries/issues/77