Added return to addButton so you can get its element
This commit is contained in:
parent
bceb0ae26a
commit
7036c5e7a6
@ -99,10 +99,12 @@ function numberShorten (Value) {
|
|||||||
function buttonAdd (ParentID,ID,Label,Action,Class,Element) {
|
function buttonAdd (ParentID,ID,Label,Action,Class,Element) {
|
||||||
if ( "undefined" == typeof Class ) { Class = ""; }
|
if ( "undefined" == typeof Class ) { Class = ""; }
|
||||||
if ( "undefined" == typeof Element) { Element = "div"; }
|
if ( "undefined" == typeof Element) { Element = "div"; }
|
||||||
(function (button) {
|
var me = (function (button) {
|
||||||
button.innerHTML = Label;
|
button.innerHTML = Label;
|
||||||
button.onclick = function () { Action(); }
|
button.onclick = function () { Action(); }
|
||||||
|
return button;
|
||||||
})(elementPlace(ParentID,ID,"button "+Class,Element));
|
})(elementPlace(ParentID,ID,"button "+Class,Element));
|
||||||
|
return me;
|
||||||
}
|
}
|
||||||
|
|
||||||
function inputDialog (dialogRoot,container,args,callback) {
|
function inputDialog (dialogRoot,container,args,callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user