comparison 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
comparison
equal deleted inserted replaced
7969:ebcda75b7adb 7970:b63fcfc2c984
979 group, sort, pagesize, filter) 979 group, sort, pagesize, filter)
980 onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \ 980 onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \
981 (help_url, width, height) 981 (help_url, width, height)
982 return ('<a class="classhelp" data-helpurl="%s" ' 982 return ('<a class="classhelp" data-helpurl="%s" '
983 'data-width="%s" data-height="%s" href="%s" ' 983 'data-width="%s" data-height="%s" href="%s" '
984 'onclick="%s" %s>%s</a>') % ( 984 'target="_blank" onclick="%s" %s>%s</a>') % (
985 help_url, width, height, 985 help_url, width, height,
986 help_url, onclick, self.cgi_escape_attrs(**html_kwargs), 986 help_url, onclick, self.cgi_escape_attrs(**html_kwargs),
987 self._(label)) 987 self._(label))
988 988
989 def submit(self, label=''"Submit New Entry", action="new", html_kwargs={}): 989 def submit(self, label=''"Submit New Entry", action="new", html_kwargs={}):

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