浏览代码

Merge pull request #1748 from MaxMorais/patch-19

Unset `toolbar.current_status` on `disable_save`
version-14
Rushabh Mehta 9 年前
父节点
当前提交
5e8dab3dba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/public/js/legacy/form.js

+ 1
- 0
frappe/public/js/legacy/form.js 查看文件

@@ -803,6 +803,7 @@ _f.Frm.prototype.amend_doc = function() {
_f.Frm.prototype.disable_save = function() { _f.Frm.prototype.disable_save = function() {
// IMPORTANT: this function should be called in refresh event // IMPORTANT: this function should be called in refresh event
this.save_disabled = true; this.save_disabled = true;
this.toolbar.current_status = null;
this.page.clear_primary_action(); this.page.clear_primary_action();
} }




正在加载...
取消
保存