[minor] return btn for frm.add_custom_button

This commit is contained in:
Rushabh Mehta 2015-08-11 14:47:19 +05:30
parent a7bd640b24
commit 8c97be9e2e

View file

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