Addreses #1047, Timeline items not displaying
Sean, can you verify that this fixes the problem?
This commit is contained in:
parent
d8868cd9cb
commit
461225ac15
1 changed files with 10 additions and 2 deletions
|
@ -156,8 +156,16 @@ Zotero.Utilities.prototype.cleanTags = function(x) {
|
|||
* <ZOTEROHELLIP/> => …
|
||||
*/
|
||||
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
||||
if (typeof str != 'string') {
|
||||
throw "Argument '" + str + "' must be a string in Zotero.Utilities.htmlSpecialChars()";
|
||||
switch (typeof str) {
|
||||
case 'string':
|
||||
break;
|
||||
|
||||
case 'number':
|
||||
str = str + '';
|
||||
break;
|
||||
|
||||
default:
|
||||
throw "Argument '" + str + "' must be a string in Zotero.Utilities.htmlSpecialChars()";
|
||||
}
|
||||
|
||||
if (!str) {
|
||||
|
|
Loading…
Reference in a new issue