summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-11-06 16:10:02 +0100
committerPatrick Simianer <p@simianer.de>2015-11-06 16:10:02 +0100
commit886337bdf83c33edf2361ffa45239aa5195ca367 (patch)
tree8c864e8231c78dd9488543af02cca2be25a1935e /js/common.js
parent5184db137d585746e3c8ab933a6ed460fd312458 (diff)
cleanup
Diffstat (limited to 'js/common.js')
-rw-r--r--js/common.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/js/common.js b/js/common.js
index 92dc74b..4e7d3fe 100644
--- a/js/common.js
+++ b/js/common.js
@@ -1,6 +1,9 @@
-var data,
- ui_type;
-
+/*
+ * (common) global vars
+ *
+ */
+var data, // data (from JSON)
+ ui_type; // 't' (text) or 'g' (graphical)
/*
* hacky way to remove class from node
@@ -17,7 +20,7 @@ function removeClass(node, className)
}
/*
- *
+ * toggle display of element (by id)
*
*/
function toggleDisplay(id)