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,7 +156,15 @@ Zotero.Utilities.prototype.cleanTags = function(x) {
|
||||||
* <ZOTEROHELLIP/> => …
|
* <ZOTEROHELLIP/> => …
|
||||||
*/
|
*/
|
||||||
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
|
||||||
if (typeof str != 'string') {
|
switch (typeof str) {
|
||||||
|
case 'string':
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'number':
|
||||||
|
str = str + '';
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
throw "Argument '" + str + "' must be a string in Zotero.Utilities.htmlSpecialChars()";
|
throw "Argument '" + str + "' must be a string in Zotero.Utilities.htmlSpecialChars()";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue