summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/class/ajax.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php
index 8843cc4d..e8496e75 100644
--- a/lib/class/ajax.class.php
+++ b/lib/class/ajax.class.php
@@ -51,9 +51,9 @@ class Ajax {
$source_txt = "'$source'";
}
- $observe = "\n <script type=\"text/javascript\"><!--\n";
- $observe .= "\tEvent.observe($source_txt,'$method',function(){" . $action . ";});\n";
- $observe .= "--></script>\n";
+ $observe = "<script type=\"text/javascript\">";
+ $observe .= "Event.observe($source_txt,'$method',function(){" . $action . ";});";
+ $observe .= "</script>";
return $observe;