From 69cb3944d4985f3b4ab5a54da1aaa0b4be61059f Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 8 Jun 2009 19:58:13 -0400 Subject: [PATCH] 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 --- admin/itemtypes.pl | 2 -- .../intranet-tmpl/prog/en/modules/admin/itemtypes.tmpl | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) 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="" /> -- 2.39.5