[Koha-patches] [PATCH] Bug 2889: Added template __odd__ variable to letter.tmpl

Garry Collum gcollum at gmail.com
Wed Jun 10 00:13:26 CEST 2009


Used __odd__ variable instead of toggle in letter.tmpl.  No toggle variable was defined in letter.pl.

The table in letter.tmpl uses jquery for highlighting so the above may not be necessary, unless javascript is turned off.
---
 .../prog/en/modules/tools/letter.tmpl              |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
index f61604f..cd07456 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tmpl
@@ -144,7 +144,11 @@ $(document).ready(function() {
 			<th>&nbsp;</th>
 		</tr></thead>
 		<tbody><!-- TMPL_LOOP NAME="letter" -->
-		<!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
+		<!-- TMPL_UNLESS NAME="__odd__" -->
+			<tr class="highlight">
+		<!-- TMPL_ELSE -->
+			<tr>
+		<!-- /TMPL_UNLESS -->
 				<td><!-- TMPL_VAR NAME="module" --></td>
 				<td><!-- TMPL_VAR NAME="code" --></td>
 				<td><!-- TMPL_VAR NAME="name" --></td>
-- 
1.5.6.5




More information about the Koha-patches mailing list