parseJsonPost 기반 동작 포기

This commit is contained in:
2018-07-03 21:35:17 +09:00
parent c6f3e7672f
commit 7b1a76871a
6 changed files with 27 additions and 34 deletions
+14 -21
View File
@@ -34,11 +34,12 @@ function responseMessage(msgID, response){
url: 'j_msg_decide_opt.php',
type: 'post',
dataType:'json',
contentType: 'application/json',
data: JSON.stringify({
msgID:msgID,
response:response
})
data: {
data: JSON.stringify({
msgID:msgID,
response:response
})
}
}).then(refreshMsg);
}
@@ -54,10 +55,9 @@ function fetchMsg(){
url: 'j_msg_get_recent.php',
type: 'post',
dataType:'json',
contentType: 'application/json',
data: JSON.stringify({
data: {
sequence:sequence
})
}
});
}
@@ -373,11 +373,12 @@ function activateMessageForm(){
url:'j_msg_submit.php',
type: 'post',
dataType:'json',
contentType: 'application/json',
data: JSON.stringify({
mailbox:parseInt(targetMailbox),
text:text
})
data: {
data: JSON.stringify({
mailbox:parseInt(targetMailbox),
text:text
})
}
});
}
else{
@@ -404,10 +405,6 @@ jQuery(function($){
url:'j_basic_info.php',
type: 'post',
dataType:'json',
contentType: 'application/json',
data: JSON.stringify({
})
}).then(registerGlobal);
//sender_list.json 은 서버측에선 캐시 가능한 데이터임.
@@ -415,10 +412,6 @@ jQuery(function($){
url: 'j_msg_contact_list.php',
type: 'post',
dataType:'json',
contentType: 'application/json',
data: JSON.stringify({
})
});
var MessageList = fetchMsg();