summaryrefslogtreecommitdiff
path: root/web/share/js/tools.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-09 11:06:03 +0300
committerDevaev Maxim <[email protected]>2020-07-09 11:06:03 +0300
commitdc5b8c2522aaefe11a5d7ce1f27cadcd5d193d75 (patch)
tree58d2e85e8705c6f3ea950fc72ba3e490ed37df7e /web/share/js/tools.js
parent5f1733d0024c70ccaf31964980a6286a7951cbed (diff)
hw tab in web ui
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r--web/share/js/tools.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js
index e3fa3892..63524a6a 100644
--- a/web/share/js/tools.js
+++ b/web/share/js/tools.js
@@ -46,6 +46,10 @@ export var tools = new function() {
/************************************************************************/
+ this.upperFirst = function(text) {
+ return text[0].toUpperCase() + text.slice(1);
+ };
+
this.makeId = function() {
let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
let id = "";