Commit 6bab25d0 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch...

Merge branch '77-saved-lists-of-accessions-button-should-be-disabled-when-there-are-no-saved-lists' into 'master'

"Saved lists of accessions" button should be disabled when there are no saved lists.

Closes #77

See merge request !27
parents e47c232a 4564e48a
......@@ -172,10 +172,15 @@
<form method="post" action="<c:url value="/sel/userList"/>" role="form" class="form-horizontal">
<div class="form-group transparent">
<div class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><spring:message code="userlist.list-my-lists" /> <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" id="user-accession-lists">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="user-acc-lists">
<spring:message code="userlist.list-my-lists" />
<b class="caret"></b>
</a>
<ul class="dropdown-menu" role="menu" id="get-user-acc-lists">
<c:forEach items="${userAccessionLists}" var="userList">
<li><a href="/sel/load?list=${userList.uuid}"><c:out value="${userList.title}" /></a></li>
<li>
<a href="/sel/load?list=${userList.uuid}"><c:out value="${userList.title}" /></a>
</li>
</c:forEach>
</ul>
</div>
......@@ -215,6 +220,22 @@
</security:authorize>
</div>
</div>
<content tag="javascript">
<script type="text/javascript">
$(document).ready(function () {
$("#user-acc-lists").on("click", function () {
if ($("#get-user-acc-lists").is(":visible")) {
$('#get-user-acc-lists').hide();
} else {
$('#get-user-acc-lists').hide();
$('#get-user-acc-lists li').each(function () {
$('#get-user-acc-lists').show();
});
}
})
});
</script>
</content>
</body>
</html>
\ No newline at end of file
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