From 520103cffef8c8c1313320473303a4f553de0b3d Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 1 May 2015 12:12:42 -0400 Subject: [PATCH] (js) Extend String with method 'capitalize' --- UI/WebServerResources/js/Common/utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/WebServerResources/js/Common/utils.js b/UI/WebServerResources/js/Common/utils.js index 79bff52cd..2d525ea37 100644 --- a/UI/WebServerResources/js/Common/utils.js +++ b/UI/WebServerResources/js/Common/utils.js @@ -69,6 +69,10 @@ String.prototype.base64decode = function() { return output; }; +String.prototype.capitalize = function() { + return this.charAt(0).toUpperCase() + this.slice(1); +} + String.prototype.asDate = function () { var newDate; var date = this.split("/");