[pypy-svn] r26528 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Fri Apr 28 18:25:47 CEST 2006


Author: arigo
Date: Fri Apr 28 18:25:46 2006
New Revision: 26528

Modified:
   pypy/dist/pypy/rpython/llinterp.py
Log:
Javascript trick (the previous version made the browser jump to the
start of the page).


Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Fri Apr 28 18:25:46 2006
@@ -1023,7 +1023,7 @@
 
     FOOTER = """</pre></body></html>"""
 
-    ENTER = ('''\n\t<a href="#" onclick="togglestate('div%d')">%s</a>'''
+    ENTER = ('''\n\t<a href="javascript:togglestate('div%d')">%s</a>'''
              '''\n<div id="div%d" style="display: %s">\t''')
     LEAVE = '''\n</div>\t'''
 



More information about the Pypy-commit mailing list