Comments around some legacy functions

This commit is contained in:
bluesaxman 2022-03-22 15:19:10 -06:00
parent 3e61a339e4
commit 99b366266a

View File

@ -99,6 +99,7 @@ function numberShorten (Value,Accuricy) {
return (Math.floor(number*places)/places)+unit[level]; return (Math.floor(number*places)/places)+unit[level];
} }
/// more legacy functions that are being kept purely for backwards compatability
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"; }
@ -150,3 +151,4 @@ function popupDialog (ID, title, closeable, contentGen, genArgs, callback) {
buttonAdd("#"+ID+"_content",null,"Close",callback); buttonAdd("#"+ID+"_content",null,"Close",callback);
} }
} }
/// end of legacy