Skip to content

Commit c3632bb

Browse files
author
Richard Jones
committed
fallback for (list) popups if javascript disabled (patch [SF#1101626])
1 parent a112b5d commit c3632bb

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Fixed:
2323
- removed rlog module (py 2.3 is minimum version now)
2424
- fixed class "help" listing paging (sf bug 1106329)
2525
- nicer error looking up values of None (response to sf bug 1108697)
26+
- fallback for (list) popups if javascript disabled (sf patch 1101626)
2627

2728

2829
2005-01-13 0.8.0b2

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Florian Schulze,
130130
Klamer Schutte,
131131
Dougal Scott,
132132
Stefan Seefeld,
133+
Jouni K Sepp�nen,
133134
Jeffrey P Shell,
134135
Joel Shprentz,
135136
Terrel Shumway,

roundup/cgi/templating.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,13 @@ def classhelp(self, properties=None, label=''"(list)", width='500',
651651
property = '&property=%s'%property
652652
if form:
653653
form = '&form=%s'%form
654-
return '<a class="classhelp" href="javascript:help_window(\'%s?'\
655-
'@startwith=0&amp;@template=help&amp;properties=%s%s%s\', \'%s\', \
656-
\'%s\')">%s</a>'%(self.classname, properties, property, form, width,
657-
height, self._(label))
654+
help_url = "%s?@startwith=0&amp;@template=help&amp;"\
655+
"properties=%s%s%s" % \
656+
(self.classname, properties, property, form)
657+
onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \
658+
(help_url, width, height)
659+
return '<a class="classhelp" href="%s" onclick="%s">%s</a>' % \
660+
(help_url, onclick, self._(label))
658661

659662
def submit(self, label=''"Submit New Entry"):
660663
''' Generate a submit button (and action hidden element)

0 commit comments

Comments
 (0)