mirror of
https://forge.murkfall.net/bluesaxman/blue.js.git
synced 2026-03-13 09:34:20 -06:00
Added return to addButton so you can get its element
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user