diff options
Diffstat (limited to 'html/util.js')
-rw-r--r-- | html/util.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/html/util.js b/html/util.js index f678b4c..57626f2 100644 --- a/html/util.js +++ b/html/util.js @@ -47,4 +47,17 @@ Abcd.goHome = function() { Abcd.context.home.renderInto(document.getElementById("body")); Abcd.context.home.playTheme(); } -};
\ No newline at end of file +}; + + +//--- Utilities + +// Change visibility of a set of controls +Abcd.changeVisibility = function(object, items) { + for(var item in items) { + if (items[item]) + object.$[item].show(); + else + object.$[item].hide(); + } +}
\ No newline at end of file |