From 41cd1ead0597c5c934e6e3c1bc9d85227d0f1f2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 28 Oct 2011 08:47:14 +0000
Subject: [PATCH] Fix for showing max number of entries in DJ

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2964 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/discojuice/www/discojuice/discojuice.ui.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/discojuice/www/discojuice/discojuice.ui.js b/modules/discojuice/www/discojuice/discojuice.ui.js
index fedcdd1dd..a8907f7e5 100644
--- a/modules/discojuice/www/discojuice/discojuice.ui.js
+++ b/modules/discojuice/www/discojuice/discojuice.ui.js
@@ -295,7 +295,7 @@ DiscoJuice.UI = {
 		
 		if (showmore) {
 			
-			var moreLink = '<a class="discojuice_showmore textlink" href="">' + this.sprintf(DiscoJuice.Dict.moreLink, show, listcount)+ '…</a>';
+			var moreLink = '<a class="discojuice_showmore textlink" href="">' + this.sprintf(DiscoJuice.Dict.moreLink, show, this.parent.Control.data.length)+ '…</a>';
 			this.popup.find("p.discojuice_moreLinkContainer").empty().append(moreLink);
 			this.popup.find("p.discojuice_moreLinkContainer a.discojuice_showmore").click(function(event) {
 				event.preventDefault();
-- 
GitLab