mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
8b9b64a8e6
commit
67c7555fd0
@ -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(',')
|
||||
|
Loading…
x
Reference in New Issue
Block a user