Skip to content

Instantly share code, notes, and snippets.

@dnch
Created July 2, 2010 01:41
Show Gist options
  • Save dnch/460815 to your computer and use it in GitHub Desktop.
Save dnch/460815 to your computer and use it in GitHub Desktop.
= form_for @enquiry || Enquiry.new, :remote => true, :builder => Paragon::Builder, :html => { :class => "paragon" } do |f|
%fieldset.horizontal
= f.text_field :name
= f.text_field :company_name
= f.text_field :email_address
= f.text_field :contact_number
= f.text_area :message
%fieldset.buttons
= f.submit "Send Enquiry"
:javascript
$(document).ready(function() {
$('#new_enquiry').bind('ajax:loading', function() { console.log('Show Spinner...'); return true; });
$('#new_enquiry').bind('ajax:complete', function() { console.log('Hide Spinner...'); return true; });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment