- Timestamp:
- Dec 20, 2009, 9:44:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/templates/functions.mako
r2667 r2672 40 40 % endif 41 41 </%def> 42 43 <%! 44 def jquote(string): 45 return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" 46 %> 47 48 <%def name="helppopup(subj)"> 49 ## Return HTML code for a (?) link to a specified help topic 50 <span class="helplink"><a href="help?simple=true;subject=${subj | u}" target="_blank" onclick="return helppopup(${subj | u,jquote})">(?)</a></span> 51 </%def>
Note: See TracChangeset
for help on using the changeset viewer.