projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8378f2c
)
Paginating für sehr große Seiten gefixt.
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 21 Jul 2011 14:14:55 +0000
(16:14 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 8 Dec 2011 10:42:49 +0000
(11:42 +0100)
SL/DB/Helper/Paginated.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/Paginated.pm
b/SL/DB/Helper/Paginated.pm
index
e170ad3
..
c490e2a
100644
(file)
--- a/
SL/DB/Helper/Paginated.pm
+++ b/
SL/DB/Helper/Paginated.pm
@@
-59,9
+59,9
@@
sub make_common_pages {
sub calc_visibility {
my ($cur, $max, $this) = @_;
any { $_ } abs($cur - $this) < 5,
- $
cur
<= 3,
- $
cur
== $max,
- any {
! abs ($cur - $this) %
$_ } 10, 50, 100, 500, 1000, 5000;
+ $
this
<= 3,
+ $
this
== $max,
+ any {
abs ($cur - $this) ==
$_ } 10, 50, 100, 500, 1000, 5000;
}
1;