summaryrefslogtreecommitdiffstats
path: root/client/lib
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2019-01-02 22:51:00 +0100
committerAngelo Gallarello <angelo.gallarell@gmail.com>2019-01-02 22:51:00 +0100
commit4d8b2029d266843dc0eb376a0bf752c46e440a13 (patch)
treeeb7d5a6fdeb2e61c8c77863334816ac15fa2203c /client/lib
parent8ad0da210940c514fc173564955568f023bde3d6 (diff)
downloadwekan-4d8b2029d266843dc0eb376a0bf752c46e440a13.tar.gz
wekan-4d8b2029d266843dc0eb376a0bf752c46e440a13.tar.bz2
wekan-4d8b2029d266843dc0eb376a0bf752c46e440a13.zip
Fixed errors
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/utils.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/lib/utils.js b/client/lib/utils.js
index f252a220..051ec952 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -220,19 +220,19 @@ Utils = {
finalString += element.text().toLowerCase();
} else if (element.hasClass('user-details')) {
let username = element.find('input').val();
- if(username == undefined || username == ""){
- username = "*";
+ if(username == undefined || username == ''){
+ username = '*';
}
- finalString += element.find('.trigger-text').text().toLowerCase()+ " " + username ;
+ finalString += `${element.find('.trigger-text').text().toLowerCase() } ${ username}`;
} else if (element.find('select').length > 0) {
finalString += element.find('select option:selected').text().toLowerCase();
} else if (element.find('input').length > 0) {
let inputvalue = element.find('input').val();
- if(inputvalue == undefined || inputvalue == ""){
- inputvalue = "*";
+ if(inputvalue == undefined || inputvalue == ''){
+ inputvalue = '*';
}
finalString += inputvalue;
- }
+ }
// Add space
if (i !== length - 1) {
finalString += ' ';