修改wechat配置
This commit is contained in:
parent
d1e29220da
commit
b1a95d4a53
|
@ -11,10 +11,15 @@
|
|||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#submitForm").click(function(){
|
||||
|
||||
var data = {};
|
||||
$("#main_login_form").serializeArray().map(function(x){data[x.name] = x.value;});
|
||||
console.log(data);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + "<%=form_authenticity_token%>",
|
||||
data:$(this).parent("form").serialize(),
|
||||
url: $(this).parent("form").attr("action"),
|
||||
data:data,
|
||||
dataType: "json"
|
||||
});
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue