Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3173:f412ae175b4d maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 14 Feb 2005 05:56:00 +0000 |
| parents | d2eb7af1b55b |
| children | 2ac85e66e9bb |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Mon Feb 14 05:51:14 2005 +0000 +++ b/roundup/cgi/templating.py Mon Feb 14 05:56:00 2005 +0000 @@ -640,10 +640,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)
