Bug 2889: Removed toggle variable from overduerules.tmpl - added __odd__

Removed toggle variable from overduerules.pl and overduerules.tmpl. Used template variable __odd__ instead.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Garry Collum 2009-06-08 15:45:01 -04:00 committed by Henri-Damien LAURENT
parent 1effd6f08b
commit 9f5aeecd55
2 changed files with 2 additions and 9 deletions

View File

@ -80,11 +80,11 @@ $(document).ready(function() {
<th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th>
</tr>
<!-- TMPL_LOOP NAME="table" -->
<!-- TMPL_IF NAME="toggle" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<th scope="row"><!-- TMPL_VAR NAME="line" --></th>
<td>
<input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />

View File

@ -182,17 +182,10 @@ my $letters = GetLetters("circulation");
my $countletters = scalar $letters;
my @line_loop;
my $toggle = 1;
for my $data (@categories) {
if ( $toggle eq 1 ) {
$toggle = 0;
} else {
$toggle = 1;
}
my %row = (
overduename => $data->{'categorycode'},
toggle => $toggle,
line => $data->{'description'}
);
if (%temphash and not $input_saved){