diff --git a/libs/bluecore.js b/libs/bluecore.js index f5e688c..3453f9b 100644 --- a/libs/bluecore.js +++ b/libs/bluecore.js @@ -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) {