mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
Replace exec_xml() with exec_json() in document AJAX actions
This commit is contained in:
parent
95267b415a
commit
e361d2e40a
1 changed files with 6 additions and 6 deletions
|
|
@ -779,7 +779,7 @@ function doCallModuleAction(module, action, target_srl) {
|
||||||
cur_mid : current_mid,
|
cur_mid : current_mid,
|
||||||
mid : current_mid
|
mid : current_mid
|
||||||
};
|
};
|
||||||
exec_xml(module, action, params, completeCallModuleAction);
|
exec_xml(module + '.' + action, params, completeCallModuleAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeCallModuleAction(ret_obj, response_tags) {
|
function completeCallModuleAction(ret_obj, response_tags) {
|
||||||
|
|
@ -905,7 +905,7 @@ function doDocumentSave(obj) {
|
||||||
editorRelKeys[editor_sequence].content.value = content;
|
editorRelKeys[editor_sequence].content.value = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
var params={}, responses=['error','message','document_srl'], elms=obj.form.elements, data=jQuery(obj.form).serializeArray();
|
var params={}, data=jQuery(obj.form).serializeArray();
|
||||||
jQuery.each(data, function(i, field){
|
jQuery.each(data, function(i, field){
|
||||||
var val = jQuery.trim(field.value);
|
var val = jQuery.trim(field.value);
|
||||||
if(!val) return true;
|
if(!val) return true;
|
||||||
|
|
@ -914,7 +914,7 @@ function doDocumentSave(obj) {
|
||||||
else params[field.name] = field.value;
|
else params[field.name] = field.value;
|
||||||
});
|
});
|
||||||
|
|
||||||
exec_xml('document','procDocumentTempSave', params, completeDocumentSave, responses, params, obj.form);
|
exec_json('document.procDocumentTempSave', params, completeDocumentSave);
|
||||||
|
|
||||||
editorRelKeys[editor_sequence].content.value = prev_content;
|
editorRelKeys[editor_sequence].content.value = prev_content;
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -984,9 +984,9 @@ function doAddDocumentCart(obj) {
|
||||||
|
|
||||||
function callAddDocumentCart(document_length) {
|
function callAddDocumentCart(document_length) {
|
||||||
if(addedDocument.length<1 || document_length != addedDocument.length) return;
|
if(addedDocument.length<1 || document_length != addedDocument.length) return;
|
||||||
var params = [];
|
exec_json('document.procDocumentAddCart', {
|
||||||
params.srls = addedDocument.join(",");
|
srls: addedDocument.join(',')
|
||||||
exec_xml("document","procDocumentAddCart", params, null);
|
});
|
||||||
addedDocument = [];
|
addedDocument = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue