Proper ellipsis in Zotero.Utilities.ellipsize()

This commit is contained in:
Dan Stillman 2011-07-12 16:40:23 +00:00
parent 289983f486
commit 347c86b85a

View File

@ -462,7 +462,7 @@ Zotero.Utilities = {
throw ("Length not specified in Zotero.Utilities.ellipsize()");
}
if (str.length > len) {
return str.substr(0, len) + '...' + (countChars ? ' (' + str.length + ' chars)' : '');
return str.substr(0, len) + '' + (countChars ? ' (' + str.length + ' chars)' : '');
}
return str;
},