Commit 656f5725 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Fix javascript quoting.

Fix javascript catch when setting document.xxx.innerHTML='<something='somethingelse'>'; to escape inner quotes.
parent 2cc278a4
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
<py:otherwise> <py:otherwise>
<py:choose> <py:choose>
<py:when test="default_routerid == ridx and default_commandid == cidx and defined('default_params') and pidx &lt; len(default_params)"> <py:when test="default_routerid == ridx and default_commandid == cidx and defined('default_params') and pidx &lt; len(default_params)">
<input type="text" name="param${pidx}" id="param${pidx}" value="${default_params[pidx]}" onfocus="this.className='hover'" onblur="this.className='out'" /> \ <input type="text" name="param${pidx}" id="param${pidx}" value="${default_params[pidx]}" onfocus="this.className=\'hover\'" onblur="this.className=\'out\'" /> \
</py:when> </py:when>
<py:otherwise> <py:otherwise>
<input type="text" name="param${pidx}" id="param${pidx}" value="${param.getDefault()}" onfocus="this.className='hover'" onblur="this.className='out'" /> \ <input type="text" name="param${pidx}" id="param${pidx}" value="${param.getDefault()}" onfocus="this.className=\'hover\'" onblur="this.className=\'out\'" /> \
</py:otherwise> </py:otherwise>
</py:choose> </py:choose>
</py:otherwise> </py:otherwise>
......
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