From: Garry Collum Date: Mon, 8 Jun 2009 23:58:13 +0000 (-0400) Subject: Bug 2889: Removed toggle variable from itemtypes.tmpl. (resubmittal) X-Git-Tag: v3.00.04~413 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=69cb3944d4985f3b4ab5a54da1aaa0b4be61059f;p=koha.git Bug 2889: Removed toggle variable from itemtypes.tmpl. (resubmittal) Removed toggle variable from itemtypes.tmpl and itemtypes.pl. Used the __odd__ template variable instead. Resubmittal - first patch contained a typo. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index 345e172299..9f0395cdbc 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -240,10 +240,8 @@ else { # DEFAULT # if we are on the last page, the number of the last word to display # must not exceed the length of the results array my $last = min( $first + $pagesize - 1, scalar @{$results} - 1, ); - my $toggle = 0; my @loop; foreach my $itemtype ( @{$results}[ $first .. $last ] ) { - $itemtype->{toggle} = ($toggle++ % 2) ? 0 : 1 ; $itemtype->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtype->{imageurl} ); $itemtype->{rentalcharge} = sprintf( '%.2f', $itemtype->{rentalcharge} ); push( @loop, $itemtype ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl index 93bcfb955e..a519c0ee64 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl @@ -290,10 +290,10 @@ Item Types Administration Actions - - - + + + " alt="" />