Commit bb0eaa28 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update documentations.html to use the new construct for embeded javaScript.

parent d5470ce8
......@@ -23,17 +23,6 @@
response.write(H2(T("Binary files"), _class="dbui-h2 dbui-small-cap"))
#
# Export python variables to the javascript
#
jsvars = ["cfgDoc = %s" % cfg_doc,
"cfgSrc = %s" % cfg_src,
"gridDoc = '%s'" % grid_doc,
"gridSrc = '%s'" % grid_src]
jsvars = " var %s;" % ',\n'.join(jsvars)
response.write(SCRIPT(jsvars), escape=False)
}}
<div style="width: 570px;">
<p class="dbui-p" style="margin-left: 7%; margin-right: 7%;">
......@@ -52,6 +41,11 @@
</div>
<script>
var cfgDoc = {{=XML(cfg_doc)}},
cfgSrc = {{=XML(cfg_src)}},
gridDoc = '{{=grid_doc}}',
gridSrc = '{{=grid_src}}';
//
// instantiate the grid for the documentation
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment