Second part of numeric-leading-zeros fix

This commit is contained in:
Dan Stillman 2010-02-04 23:44:04 +00:00
parent 9b4eb42c29
commit f3ba225f6f

View File

@ -986,7 +986,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString,
} else if(part == "day") {
string = string.toString();
if(newForm == "numeric-leading-zeros"
&& string.length() == 1) {
&& string.length == 1) {
string = "0" + string;
} else if (newForm == "ordinal") {
var ind = parseInt(string);