From 7a17b105602117b4160518107ceec18bf841ac13 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 7 Oct 2012 15:00:43 +0200 Subject: [PATCH] Adds missing new JavaScript method --- wcfsetup/install/files/js/WCF.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 * -- 2.20.1