Commit 0904f8ef authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Incorrect behavior of the alphabetical navigation.

parent 6bab25d0
......@@ -6046,6 +6046,13 @@ table.accessions {
display: none;
}
.letter-anchor {
display: block;
height: 79px;
margin-top: -79px;
visibility: hidden;
}
/**
* RTL languages
......
......@@ -17,28 +17,36 @@
</div>
</div> --%>
<span id="top" class="letter-anchor"></span>
<div id="letter-top" class="main-col-header row">
<div class="col-md-12 col-sm-12">
<c:set value="" var="hoofdleter" />
<c:forEach items="${countries}" var="country" varStatus="status">
<c:if test="${hoofdleter ne country.getName(pageContext.response.locale).substring(0, 1)}">
<c:set var="hoofdleter" value="${country.getName(pageContext.response.locale).substring(0, 1)}" />
<a class="letter-pointer" href="#letter-${hoofdleter}"><c:out value="${hoofdleter}" /></a>
</c:if>
</c:forEach>
</div>
<div class="col-md-12 col-sm-12">
<c:set value="" var="hoofdleter" />
<c:forEach items="${countries}" var="country" varStatus="status">
<c:if test="${hoofdleter ne country.getName(pageContext.response.locale).substring(0, 1)}">
<c:set var="hoofdleter" value="${country.getName(pageContext.response.locale).substring(0, 1)}" />
<a class="letter-pointer" href="#letter-${hoofdleter}"><c:out value="${hoofdleter}" /></a>
</c:if>
</c:forEach>
</div>
</div>
<c:forEach items="${firstLetters}" var="hoofd">
<div class="row">
<div id="letter-<c:out value='${hoofd}' />" class="hoofdleter"><c:out value="${hoofd}" />
<small class="pull-right"><a href="#letter-top"><spring:message code="jump-to-top" /></a></small>
<span class="letter-anchor" id="letter-<c:out value='${hoofd}' />"></span>
<div class="hoofdleter">
<c:out value="${hoofd}" />
<small class="pull-right">
<a href="#top"><spring:message code="jump-to-top" /></a>
</small>
</div>
<ul class="funny-list list-unstyled">
<c:forEach items="${countries}" var="country" varStatus="status">
<c:if test="${country.getName(pageContext.response.locale).substring(0, 1) eq hoofd}">
<li><a class="show ${not country.current ? 'disabled' : ''}" href="<c:url value="/geo/${country.code3}" />"><c:out value="${country.getName(pageContext.response.locale)}" /></a></li>
<li>
<a class="show ${not country.current ? 'disabled' : ''}" href="<c:url value="/geo/${country.code3}" />">
<c:out value="${country.getName(pageContext.response.locale)}" /></a>
</li>
</c:if>
</c:forEach>
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment