diff roundup/cgi/templating.py @ 1739:c3f0b552a55a

batch the (list) listings at 500 entries per page [SF#759906] Unfortunately, the doovy javascript falls over when the next/prev links are used, so I've added some simple checking to remove that stuff when we're paging through the results (the simple test fails if you page back to the first page, but it'll do for now)
author Richard Jones <richard@users.sourceforge.net>
date Tue, 12 Aug 2003 02:10:12 +0000
parents 1f8bbdff56b9
children f166cd4fd392
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Aug 12 01:49:30 2003 +0000
+++ b/roundup/cgi/templating.py	Tue Aug 12 02:10:12 2003 +0000
@@ -466,9 +466,10 @@
             properties = ','.join(properties)
         if property:
             property = '&property=%s'%property
-        return '<a class="classhelp" href="javascript:help_window(\'%s?:'\
-            'template=help&properties=%s%s\', \'%s\', \'%s\')">%s</a>'%(
-            self.classname, properties, property, width, height, label)
+        return '<a class="classhelp" href="javascript:help_window(\'%s?'\
+            ':startwith=0&:template=help&properties=%s%s\', \'%s\', \
+            \'%s\')">%s</a>'%(self.classname, properties, property, width,
+            height, label)
 
     def submit(self, label="Submit New Entry"):
         ''' Generate a submit button (and action hidden element)

Roundup Issue Tracker: http://roundup-tracker.org/