init
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -78,6 +78,10 @@ | ... | @@ -78,6 +78,10 @@ |
| 78 | 78 | ||
| 79 | <script> | 79 | <script> |
| 80 | function save() { | 80 | function save() { |
| 81 | layer_close(); | ||
| 82 | window.parent.location.reload(); | ||
| 83 | |||
| 84 | return; | ||
| 81 | var targetUrl = $("#add").attr("action"); | 85 | var targetUrl = $("#add").attr("action"); |
| 82 | var data = $("#add").serializeJson(); | 86 | var data = $("#add").serializeJson(); |
| 83 | $.ajax({ | 87 | $.ajax({ |
| ... | @@ -97,7 +101,7 @@ | ... | @@ -97,7 +101,7 @@ |
| 97 | } | 101 | } |
| 98 | if(!data.code) { | 102 | if(!data.code) { |
| 99 | layer_close(); | 103 | layer_close(); |
| 100 | window.location.reload(); | 104 | window.parent.location.reload(); |
| 101 | } | 105 | } |
| 102 | }, | 106 | }, |
| 103 | error: function () { | 107 | error: function () { | ... | ... |
-
Please register or sign in to post a comment