Last active
August 29, 2015 14:06
-
-
Save nonzer0/17168e7e35bfead6e131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
return $('.contact-fields').on("ajax:success", function(e, data, status, xhr) { | |
$('.contact-fields').append(xhr.responseText); | |
$('#myModal').modal('hide'); | |
}).on("ajax:error", function(e, data, status, error) { | |
return $('.contact-fields').append('Error'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment