--- roundup/cgi/templating.py.orig Thu Jan 13 07:15:48 2005
+++ roundup/cgi/templating.py Thu Jan 13 15:29:02 2005
@@ -638,10 +638,13 @@
property = '&property=%s'%property
if form:
form = '&form=%s'%form
- return '%s'%(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 '%s' % \
+ (help_url, onclick, self._(label))
def submit(self, label=''"Submit New Entry"):
''' Generate a submit button (and action hidden element)