Added return to addButton so you can get its element

This commit is contained in:
bluesaxman 2021-06-17 15:35:38 -06:00
parent bceb0ae26a
commit 7036c5e7a6

View File

@ -99,10 +99,12 @@ function numberShorten (Value) {
function buttonAdd (ParentID,ID,Label,Action,Class,Element) {
if ( "undefined" == typeof Class ) { Class = ""; }
if ( "undefined" == typeof Element) { Element = "div"; }
(function (button) {
var me = (function (button) {
button.innerHTML = Label;
button.onclick = function () { Action(); }
return button;
})(elementPlace(ParentID,ID,"button "+Class,Element));
return me;
}
function inputDialog (dialogRoot,container,args,callback) {