aa86f345 by wang

init

1 parent 3b1fe8ff
...@@ -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 },
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!