Commit 4564e48a authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

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

parent e47c232a
......@@ -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>
<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>
<a href="/sel/load?list=${userList.uuid}"><c:out value="${userList.title}" /></a>
......@@ -215,6 +220,22 @@
<content tag="javascript">
<script type="text/javascript">
$(document).ready(function () {
$("#user-acc-lists").on("click", function () {
if ($("#get-user-acc-lists").is(":visible")) {
} else {
$('#get-user-acc-lists li').each(function () {
\ 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