forked from CGM_Public/pretix_original
Update djangojs.js to current Django
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
if (typeof(value) == 'undefined') {
|
if (typeof(value) == 'undefined') {
|
||||||
return (count == 1) ? singular : plural;
|
return (count == 1) ? singular : plural;
|
||||||
} else {
|
} else {
|
||||||
return value[django.pluralidx(count)];
|
return value.constructor === Array ? value[django.pluralidx(count)] : value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user