summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 45ddd521..9cd78d94 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -898,7 +898,7 @@ function xml_get_footer($type){
break;
}
-} //xml_get_footer
+} // xml_get_footer
/**
* ajax_include
@@ -917,4 +917,17 @@ function ajax_include($include) {
} // ajax_include
+/**
+ * toggle_visible
+ * this is identicla to the javascript command that it actually calls
+ */
+function toggle_visible($element) {
+
+ echo "<script type=\"text/javascript\">\n";
+ echo "toggle_visible('$element');";
+ echo "\n</script>\n";
+
+} // toggle_visible
+
+
?>