[fix] POST in
This commit is contained in:
parent
632c48ecb1
commit
88587e5aaf
2 changed files with 5 additions and 0 deletions
|
|
@ -112,6 +112,10 @@ frappe.request.call = function(opts) {
|
|||
msgprint(__("Server Error: Please check your server logs or contact tech support."))
|
||||
opts.error_callback && opts.error_callback();
|
||||
frappe.request.report_error(xhr, opts);
|
||||
},
|
||||
504: function(xhr) {
|
||||
msgprint(__("Request Timed Out"))
|
||||
opts.error_callback && opts.error_callback();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ function $c_obj(doc, method, arg, callback, no_spinner, freeze_msg, btn) {
|
|||
}
|
||||
|
||||
return frappe.request.call({
|
||||
type: "POST",
|
||||
args: args,
|
||||
success: callback,
|
||||
btn: btn,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue