From 0b3f75183ba0fafcaa44ec3c05bc5b81c89635b5 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 10 Jun 2009 20:47:31 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from roadtype.pl and .tmpl. Removed toggle variable from roadtype.pl and roadtype.tmpl. Corrected typo in class definition in roadtype.tmpl and add highlighting through the templated __odd__ variable. Signed-off-by: Galen Charlton --- admin/roadtype.pl | 12 +----------- .../prog/en/modules/admin/roadtype.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/admin/roadtype.pl b/admin/roadtype.pl index 5441eb9da5..afd3636f11 100755 --- a/admin/roadtype.pl +++ b/admin/roadtype.pl @@ -141,20 +141,10 @@ if ($op eq 'add_form') { $template->param(else => 1); my @loop; my ($count,$results)=StringSearch($searchfield,'web'); - my $toggle = 0; for (my $i=0; $i < $count; $i++){ my %row = (roadtypeid => $results->[$i]{'roadtypeid'}, - road_type => $results->[$i]{'road_type'}, - toggle => $toggle ); + road_type => $results->[$i]{'road_type'}); push @loop, \%row; - if ( $toggle eq 0 ) - { - $toggle = 1; - } - else - { - $toggle = 0; - } } $template->param(loop => \@loop); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tmpl index 20f8134b29..703c7bb428 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tmpl @@ -141,11 +141,11 @@   - - + + - + ?op=add_form&roadtypeid=">Edit ?op=delete_confirm&roadtypeid=">Delete -- 2.39.5