diff --git a/kfet/static/kfet/js/kfet.js b/kfet/static/kfet/js/kfet.js index e54d0e74..1412cd4b 100644 --- a/kfet/static/kfet/js/kfet.js +++ b/kfet/static/kfet/js/kfet.js @@ -140,6 +140,7 @@ function requestAuth(data, callback, focus_next = null) { } String.prototype.pluralize = function(count, irreg_plural = false) { - plural = irreg_plural ? irreg_plural : this + 's' ; - return (count==1 ? this : plural) ; + if (Math.abs(count) >= 2) + return irreg_plural ? irreg_plural : this+'s' ; + return this ; }