瀏覽代碼

[change-log] + don't show refresh message in current form

version-14
Rushabh Mehta 9 年之前
父節點
當前提交
2fa3879f8f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      frappe/public/js/frappe/request.js

+ 3
- 0
frappe/public/js/frappe/request.js 查看文件

@@ -135,6 +135,8 @@ frappe.request.call = function(opts) {


frappe.last_request = ajax_args.data; frappe.last_request = ajax_args.data;


frappe.ui.form.is_saving = true;

return $.ajax(ajax_args) return $.ajax(ajax_args)
.always(function(data, textStatus, xhr) { .always(function(data, textStatus, xhr) {
if(typeof data==="string") { if(typeof data==="string") {
@@ -148,6 +150,7 @@ frappe.request.call = function(opts) {
if(opts.always) { if(opts.always) {
opts.always(data); opts.always(data);
} }
frappe.ui.form.is_saving = false;
}) })
.done(function(data, textStatus, xhr) { .done(function(data, textStatus, xhr) {
var status_code_handler = statusCode[xhr.statusCode().status]; var status_code_handler = statusCode[xhr.statusCode().status];


Loading…
取消
儲存