Changeset 98 for trunk/dns.cgi
- Timestamp:
- 06/24/11 17:30:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r97 r98 101 101 # default 102 102 #my $perpage = 15; 103 my $perpage = 3;103 my $perpage = 5; 104 104 my $offset = ($webvar{offset} ? $webvar{offset} : 0); 105 105 … … 1348 1348 my $parent = shift; 1349 1349 1350 # Fix display/UI bug where if you are not on the first page of the list, and 1351 # you add a search term or click one of the "starts with" links, you end up 1352 # on a page showing nothing. 1353 # For bonus points, this reverts to the original offset on clicking the "All" link (mostly) 1354 $offset-- while ($offset * $perpage) >= $pgcount; 1355 1350 1356 $page->param(ntot => $pgcount); 1351 1357 $page->param(nfirst => (($offset eq 'all' ? 0 : $offset)*$perpage+1));
Note:
See TracChangeset
for help on using the changeset viewer.