From: Matthias Schmidt Date: Sun, 7 Oct 2012 13:00:43 +0000 (+0200) Subject: Adds missing new JavaScript method X-Git-Tag: 2.0.0_Beta_1~896^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a17b105602117b4160518107ceec18bf841ac13;p=GitHub%2FWoltLab%2FWCF.git Adds missing new JavaScript method --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 51982d71ff..dee00bf54f 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2685,6 +2685,16 @@ WCF.String = { return this.addThousandsSeparator(number); }, + /** + * Makes a string's first character lowercase + * + * @param string string + * @return string + */ + lcfirst: function(string) { + return string.substring(0, 1).toLowerCase() + string.substring(1); + }, + /** * Makes a string's first character uppercase *