[change-log] + don't show refresh message in current form
This commit is contained in:
parent
b7ffa04df3
commit
2fa3879f8f
1 changed files with 3 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ frappe.request.call = function(opts) {
|
|||
|
||||
frappe.last_request = ajax_args.data;
|
||||
|
||||
frappe.ui.form.is_saving = true;
|
||||
|
||||
return $.ajax(ajax_args)
|
||||
.always(function(data, textStatus, xhr) {
|
||||
if(typeof data==="string") {
|
||||
|
|
@ -148,6 +150,7 @@ frappe.request.call = function(opts) {
|
|||
if(opts.always) {
|
||||
opts.always(data);
|
||||
}
|
||||
frappe.ui.form.is_saving = false;
|
||||
})
|
||||
.done(function(data, textStatus, xhr) {
|
||||
var status_code_handler = statusCode[xhr.statusCode().status];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue