Procházet zdrojové kódy

[minor] return btn for frm.add_custom_button

version-14
Rushabh Mehta před 10 roky
rodič
revize
8c97be9e2e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/public/js/legacy/form.js

+ 1
- 1
frappe/public/js/legacy/form.js Zobrazit soubor

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


_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() {


Načítá se…
Zrušit
Uložit