|
|
@ -13,7 +13,7 @@
|
|
|
|
$("#submitForm").click(function(){
|
|
|
|
$("#submitForm").click(function(){
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
type: "POST",
|
|
|
|
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + <%=form_authenticity_token%>,
|
|
|
|
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + "<%=form_authenticity_token%>",
|
|
|
|
data:$(this).parent("form").serialize(),
|
|
|
|
data:$(this).parent("form").serialize(),
|
|
|
|
dataType: "json"
|
|
|
|
dataType: "json"
|
|
|
|
});
|
|
|
|
});
|
|
|
|