web/request.py
changeset 4851 e55bdd10421e
parent 4719 aaed3f813ef8
child 4897 e402e0b32075
--- a/web/request.py	Tue Mar 09 12:07:16 2010 +0100
+++ b/web/request.py	Tue Mar 09 12:07:34 2010 +0100
@@ -477,7 +477,7 @@
     # high level methods for HTML headers management ##########################
 
     def add_onload(self, jscode):
-        self.html_headers.add_onload(jscode, self.json_request)
+        self.html_headers.add_onload(jscode)
 
     def add_js(self, jsfiles, localfile=True):
         """specify a list of JS files to include in the HTML headers