[fix] POST in

This commit is contained in:
Rushabh Mehta 2015-09-28 15:45:18 +05:30
parent 632c48ecb1
commit 88587e5aaf
2 changed files with 5 additions and 0 deletions

View file

@ -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();
}
};

View file

@ -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,