diff roundup/cgi/templating.py @ 7970:b63fcfc2c984

bug: make classhelper link open in new window when js is disabled Prevent the web page displaying a classhelper link from being replaced if JavaScript is disabled.
author John Rouillard <rouilj@ieee.org>
date Sat, 18 May 2024 21:28:05 -0400
parents a9b136565838
children 1045425c23b2
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu May 16 09:36:10 2024 -0400
+++ b/roundup/cgi/templating.py	Sat May 18 21:28:05 2024 -0400
@@ -981,7 +981,7 @@
                   (help_url, width, height)
         return ('<a class="classhelp" data-helpurl="%s" '
                 'data-width="%s" data-height="%s" href="%s" '
-                'onclick="%s" %s>%s</a>') % (
+                'target="_blank" onclick="%s" %s>%s</a>') % (
                     help_url, width, height,
                     help_url, onclick, self.cgi_escape_attrs(**html_kwargs),
                     self._(label))

Roundup Issue Tracker: http://roundup-tracker.org/