Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3169:d8d1ebd80930
fallback for (list) popups if javascript disabled (patch [SF#1101626])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 14 Feb 2005 05:50:31 +0000 |
| parents | 24476db8872f |
| children | 88dbe6b3d891 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Mon Feb 14 05:39:37 2005 +0000 +++ b/roundup/cgi/templating.py Mon Feb 14 05:50:31 2005 +0000 @@ -651,10 +651,13 @@ property = '&property=%s'%property if form: form = '&form=%s'%form - return '<a class="classhelp" href="javascript:help_window(\'%s?'\ - '@startwith=0&@template=help&properties=%s%s%s\', \'%s\', \ - \'%s\')">%s</a>'%(self.classname, properties, property, form, width, - height, self._(label)) + help_url = "%s?@startwith=0&@template=help&"\ + "properties=%s%s%s" % \ + (self.classname, properties, property, form) + onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \ + (help_url, width, height) + return '<a class="classhelp" href="%s" onclick="%s">%s</a>' % \ + (help_url, onclick, self._(label)) def submit(self, label=''"Submit New Entry"): ''' Generate a submit button (and action hidden element)
