diff --git a/theme/list_lib.js b/theme/list_lib.js
index 2d5b62632..6ca82ea51 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -47,7 +47,7 @@ function updateView(start, end)
var divelist = document.getElementById('diveslist');
divelist.innerHTML = "";
for (var i = start; i <= end; i++) {
- divelist.innerHTML += '
';
+ divelist.innerHTML += '';
expand(document.getElementById(itemsToShow[i]));
items[itemsToShow[i]].expanded = true;
};
@@ -63,7 +63,7 @@ function addHTML(indexes)
var divelist = document.getElementById('diveslist');
divelist.innerHTML = "";
for (var i = 0; i < indexes.length; i++) {
- divelist.innerHTML += '';
+ divelist.innerHTML += '';
expand(document.getElementById(indexes[i]));
itemsToShow[indexes[i]].expanded = true;
};
@@ -165,8 +165,11 @@ function setNumberOfDives(e)
viewInPage();
}
-function toggleExpantion(ul)
+function toggleExpantion(e, ul)
{
+ if (e.toElement.localName === "a" ) {
+ return;
+ }
if (!items[ul.id].expanded) {
expand(ul);
items[ul.id].expanded = true;
@@ -773,7 +776,7 @@ function expand_trip(trip)
trips[trip].expanded = true;
var d = document.getElementById("trip_dive_list_" + trip);
for (var j in trips[trip].dives) {
- d.innerHTML += '' + getlimited(trips[trip].dives[j]) + '
';
}
}