Author: mor
Date: Fri Aug 7 07:30:31 2009
New Revision: 801899
URL:
http://svn.apache.org/viewvc?rev=801899&view=revLog:
Simplified the code.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl
Modified: ofbiz/trunk/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl?rev=801899&r1=801898&r2=801899&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl Fri Aug 7 07:30:31 2009
@@ -32,11 +32,11 @@
<td><b>${uiLabelMap.CommonSequenceNum}</b></td>
<td><b> </b></td>
</tr>
- <#assign rowClass = "2">
+ <#assign alt_row = false>
<#list productStoreSurveys as storeSurvey>
<#assign surveyType = storeSurvey.getRelatedOne("SurveyApplType")>
<#assign survey = storeSurvey.getRelatedOne("Survey")>
- <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>>
+ <tr valign="middle"<#if alt_row>class="alternate-row"</#if>>
<td>${surveyType.get("description",locale)}</td>
<td>${storeSurvey.groupName?if_exists}</td>
<td><a href="/content/control/EditSurvey?surveyId=${storeSurvey.surveyId}" class="buttontext">${survey.description?default("[" + survey.surveyId + "]")}</a>
@@ -52,11 +52,7 @@
</form>
</td>
<#-- toggle the row color -->
- <#if rowClass == "2">
- <#assign rowClass = "1">
- <#else>
- <#assign rowClass = "2">
- </#if>
+ <#assign alt_row = !alt_row>
</#list>
</table>
</div>