Mercurial > p > roundup > code
changeset 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 | 3204488d20b5 |
| children | cfe7d8cb9794 |
| files | CHANGES.txt doc/index.txt roundup/cgi/templating.py |
| diffstat | 3 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Mon Feb 14 05:39:37 2005 +0000 +++ b/CHANGES.txt Mon Feb 14 05:50:31 2005 +0000 @@ -23,6 +23,7 @@ - removed rlog module (py 2.3 is minimum version now) - fixed class "help" listing paging (sf bug 1106329) - nicer error looking up values of None (response to sf bug 1108697) +- fallback for (list) popups if javascript disabled (sf patch 1101626) 2005-01-13 0.8.0b2
--- a/doc/index.txt Mon Feb 14 05:39:37 2005 +0000 +++ b/doc/index.txt Mon Feb 14 05:50:31 2005 +0000 @@ -130,6 +130,7 @@ Klamer Schutte, Dougal Scott, Stefan Seefeld, +Jouni K Seppänen, Jeffrey P Shell, Joel Shprentz, Terrel Shumway,
--- 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)
