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.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 6c1d56fa..4a5767a9 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -716,13 +716,23 @@ function ajax_include($include) {
*/
function toggle_visible($element) {
- echo "<script type=\"text/javascript\">\n";
- echo "toggle_visible('$element');";
- echo "\n</script>\n";
+ echo '<script type="text/javascript">';
+ echo "toggleVisible('$element');";
+ echo "</script>\n";
} // toggle_visible
/**
+ * update_text
+ * Convenience function
+ */
+function update_text($field, $value) {
+ echo '<script type="text/javascript">';
+ echo "updateText('$field', '$value');";
+ echo "</script>\n";
+}
+
+/**
* print_bool
* This function takes a boolean value and then prints out a friendly text
* message.