init
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -58,14 +58,14 @@ | ... | @@ -58,14 +58,14 @@ |
| 58 | } | 58 | } |
| 59 | }); | 59 | }); |
| 60 | $("#work_add_btn").click(function(){ | 60 | $("#work_add_btn").click(function(){ |
| 61 | var targetUrl = $("#addForm").attr("action"); | 61 | var targetUrl = $("#work_add").attr("action"); |
| 62 | var data = $("#addForm").serialize(); | 62 | var data = $("#work_add").serialize(); |
| 63 | $.ajax({ | 63 | $.ajax({ |
| 64 | type:'post', | 64 | type:'post', |
| 65 | url:apiBaseUrl + targetUrl, | 65 | url:apiBaseUrl + targetUrl, |
| 66 | cache: false, | 66 | cache: false, |
| 67 | data:data, | 67 | data:data, |
| 68 | dataType:'json', | 68 | // dataType:'json', |
| 69 | success:function(data){ | 69 | success:function(data){ |
| 70 | alert('success'); | 70 | alert('success'); |
| 71 | }, | 71 | }, | ... | ... |
-
Please register or sign in to post a comment