Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created March 16, 2011 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan/872393 to your computer and use it in GitHub Desktop.
Save bogdan/872393 to your computer and use it in GitHub Desktop.
function get_recepients(){
var form = $.popup().find('form');
$.ajax({
url:recipients_new_job_postcard_path('.json'),
type: "post",
data: form.serialize() ,
success: function(data) {
if (data.success) {
form.find('.js-postcard-recipients').html(data.html);
form.find('.js-postcard-step').addClass('invisible');
form.find('.js-postcard-recipients').removeClass('invisible');
} else {
form.applyFormErrors(data.errors);
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment