diff --git a/static/js/wishlists.js b/static/js/wishlists.js index b3b2ef2..0419e13 100644 --- a/static/js/wishlists.js +++ b/static/js/wishlists.js @@ -102,10 +102,20 @@ function updateListHTML(listElem) { .nextAll() .wrapAll('
') listHtmlElem.append('
' + - '' + '
'); + + var listMoreButton = listHtmlElem.find(".list-more-toggle"); + console.debug(listMoreButton); + listHtmlElem.find('.list-more') + .on('shown.bs.collapse', function() { + listMoreButton.text('Minder…'); + }).on('hidden.bs.collapse', function() { + listMoreButton.text('Meer…'); + }); } }).fail(function(html, textMsg, error) { listHtmlElem.html("

Kan lijst niet tonen!

" +