branch | stable |
changeset 2258 | 79bc598c6411 |
parent 2255 | c346af0727ca |
child 2312 | af4d8f75c5db |
--- a/web/request.py Fri Jul 03 17:58:36 2009 +0200 +++ b/web/request.py Fri Jul 03 18:00:07 2009 +0200 @@ -453,6 +453,9 @@ # high level methods for HTML headers management ########################## + def add_onload(self, jscode): + self.html_headers.add_onload(jscode, self.json_request) + def add_js(self, jsfiles, localfile=True): """specify a list of JS files to include in the HTML headers :param jsfiles: a JS filename or a list of JS filenames