This works:
s.clone().setCat will not overwrite the category field for the next compare. That's why I'm suprised that the above doesn't work. This is no loop however.
<li #{if s.isCat(search.katta.SearchControllerSettings.CATEGORY.all)}class="active"#{/if}><a href="@{www.WebSearch.index(s.clone().setCat(search.katta.SearchControllerSettings.CATEGORY.all))}">Alle</a></li> <li #{if s.isCat(search.katta.SearchControllerSettings.CATEGORY.business)}class="active"#{/if}><a href="@{www.WebSearch.index(s.clone().setCat(search.katta.SearchControllerSettings.CATEGORY.business))}">Wirtschaft</a></li>
This works:
s.clone().setCat will not overwrite the category field for the next compare. That's why I'm suprised that the above doesn't work.
This is no loop however.
<li #{if s.isCat( search. katta.SearchCon trollerSettings .CATEGORY. all)}class= "active" #{/if}> <a href="@ {www.WebSearch. index(s. clone() .setCat( search. katta.SearchCon trollerSettings .CATEGORY. all))}" >Alle</ a></li> search. katta.SearchCon trollerSettings .CATEGORY. business) }class= "active" #{/if}> <a href="@ {www.WebSearch. index(s. clone() .setCat( search. katta.SearchCon trollerSettings .CATEGORY. business) )}">Wirtschaft< /a></li>
<li #{if s.isCat(