46ecd3f7 by yangjianbin

init

1 parent 6a8026ab
...@@ -78,10 +78,6 @@ ...@@ -78,10 +78,6 @@
78 78
79 <script> 79 <script>
80 function save() { 80 function save() {
81 window.parent.location.reload();
82 layer_close();
83
84 return;
85 var targetUrl = $("#add").attr("action"); 81 var targetUrl = $("#add").attr("action");
86 var data = $("#add").serializeJson(); 82 var data = $("#add").serializeJson();
87 $.ajax({ 83 $.ajax({
...@@ -100,8 +96,8 @@ ...@@ -100,8 +96,8 @@
100 layer.alert('请求成功'); 96 layer.alert('请求成功');
101 } 97 }
102 if(!data.code) { 98 if(!data.code) {
103 layer_close();
104 window.parent.location.reload(); 99 window.parent.location.reload();
100 layer_close();
105 } 101 }
106 }, 102 },
107 error: function () { 103 error: function () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!