diff options
author | Holger Levsen <holger@debian.org> | 2014-09-20 09:42:28 +0000 |
---|---|---|
committer | Holger Levsen <holger@debian.org> | 2014-09-20 09:42:28 +0000 |
commit | b4f682b53315a5c2e61d230014929fd1925c16fd (patch) | |
tree | 10473db043f493c492afa437a3d354090c2ba375 /lib/python/web_support.py | |
parent | 54bd2b174508b10e7bbc2d505a65ea8e64b3c69a (diff) |
move javascript code into external file
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28928 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/web_support.py')
-rw-r--r-- | lib/python/web_support.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py index e4b82477e4..82bb4c56ee 100644 --- a/lib/python/web_support.py +++ b/lib/python/web_support.py @@ -377,8 +377,8 @@ def A(url, text=None): return tag('a', text, href=str(url)) def STYLE(contents, type='text/css'): return tag('style', contents, type=type) -def SCRIPT(contents, type="text/javascript", language="JavaScript"): - return tag('script', contents, type=type, language=language) +def SCRIPT(contents, type="text/javascript", src=""): + return tag('script', contents, type=type, src=src) def LINK(contents, type="text/css", rel="stylesheet", href=""): return tag('link', contents, type=type, rel=rel, href=href) def TITLE(contents): |