Fix content server gui.js bug where it put '...' on the end of a list even if the list was exactly the right size.

This commit is contained in:
Charles Haley 2010-09-24 11:36:26 +01:00
parent 8b9b64a8e6
commit 67c7555fd0

View File

@ -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(',')