init
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -83,6 +83,7 @@ | ... | @@ -83,6 +83,7 @@ |
| 83 | function save() { | 83 | function save() { |
| 84 | var targetUrl = $("#add").attr("action"); | 84 | var targetUrl = $("#add").attr("action"); |
| 85 | var data = $("#add").serializeJson(); | 85 | var data = $("#add").serializeJson(); |
| 86 | console.log(JSON.stringify(data)); | ||
| 86 | $.ajax({ | 87 | $.ajax({ |
| 87 | type: 'put', | 88 | type: 'put', |
| 88 | url: apiBaseUrl + targetUrl, | 89 | url: apiBaseUrl + targetUrl, |
| ... | @@ -100,8 +101,8 @@ | ... | @@ -100,8 +101,8 @@ |
| 100 | } | 101 | } |
| 101 | setTimeout(function () { | 102 | setTimeout(function () { |
| 102 | if(!data.code) { | 103 | if(!data.code) { |
| 103 | window.parent.reload(); | 104 | // window.parent.reload(); |
| 104 | layer_close(); | 105 | // layer_close(); |
| 105 | } | 106 | } |
| 106 | },500); | 107 | },500); |
| 107 | }, | 108 | }, | ... | ... |
-
Please register or sign in to post a comment