瀏覽代碼

[minor] return btn for frm.add_custom_button

version-14
Rushabh Mehta 10 年之前
父節點
當前提交
8c97be9e2e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/public/js/legacy/form.js

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

@@ -779,7 +779,7 @@ _f.Frm.prototype.set_footnote = function(txt) {




_f.Frm.prototype.add_custom_button = function(label, fn, icon, toolbar_or_class) { _f.Frm.prototype.add_custom_button = function(label, fn, icon, toolbar_or_class) {
this.page.add_inner_button(label, fn);
return this.page.add_inner_button(label, fn);
} }


_f.Frm.prototype.clear_custom_buttons = function() { _f.Frm.prototype.clear_custom_buttons = function() {


Loading…
取消
儲存