From 67c7555fd0eb22802892ec716ec5564f3d423bc4 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 24 Sep 2010 11:36:26 +0100 Subject: [PATCH] Fix content server gui.js bug where it put '...' on the end of a list even if the list was exactly the right size. --- resources/content_server/gui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/content_server/gui.js b/resources/content_server/gui.js index bd0743a854..86cd04289b 100644 --- a/resources/content_server/gui.js +++ b/resources/content_server/gui.js @@ -63,8 +63,9 @@ function render_book(book) { if (tags) { t = tags.split(':&:', 2); m = parseInt(t[0]); + tall = t[1].split(','); t = t[1].split(',', m); - if (t.length == m) t[m] = '...' + if (tall.length > m) t[m] = '...' title += 'Tags=[{0}] '.format(t.join(',')); } custcols = book.attr("custcols").split(',')