diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-01-04 11:00:33 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-01-04 11:00:33 +0200 |
commit | f5339ef97fe1529c63504982c0273233a1521701 (patch) | |
tree | c5da5ef77dd07da774564cd9132466d0858510f3 /client | |
parent | 2b53fae16f07c3614ee9e9d54cd17f8102218fea (diff) | |
download | wekan-f5339ef97fe1529c63504982c0273233a1521701.tar.gz wekan-f5339ef97fe1529c63504982c0273233a1521701.tar.bz2 wekan-f5339ef97fe1529c63504982c0273233a1521701.zip |
- Fix lint errors.
Thanks to xet7 !
Diffstat (limited to 'client')
-rw-r--r-- | client/components/rules/rulesMain.js | 8 | ||||
-rw-r--r-- | client/components/rules/triggers/boardTriggers.js | 4 | ||||
-rw-r--r-- | client/lib/utils.js | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/client/components/rules/rulesMain.js b/client/components/rules/rulesMain.js index 2e125960..d4af38f4 100644 --- a/client/components/rules/rulesMain.js +++ b/client/components/rules/rulesMain.js @@ -1,4 +1,4 @@ -const rulesMainComponent = BlazeComponent.extendComponent({ +BlazeComponent.extendComponent({ onCreated() { this.rulesCurrentTab = new ReactiveVar('rulesList'); this.ruleName = new ReactiveVar(''); @@ -11,7 +11,7 @@ const rulesMainComponent = BlazeComponent.extendComponent({ }, sanitizeObject(obj){ Object.keys(obj).forEach((key) => { - if(obj[key] == '' || obj[key] == undefined){ + if(obj[key] === '' || obj[key] === undefined){ obj[key] = '*'; }} ); @@ -52,9 +52,9 @@ const rulesMainComponent = BlazeComponent.extendComponent({ const username = $(event.currentTarget.offsetParent).find('.user-name').val(); let trigger = this.triggerVar.get(); trigger.userId = '*'; - if(username != undefined ){ + if(username !== undefined ){ const userFound = Users.findOne({username}); - if(userFound != undefined){ + if(userFound !== undefined){ trigger.userId = userFound._id; this.triggerVar.set(trigger); } diff --git a/client/components/rules/triggers/boardTriggers.js b/client/components/rules/triggers/boardTriggers.js index f9aa57cb..d4b9b81c 100644 --- a/client/components/rules/triggers/boardTriggers.js +++ b/client/components/rules/triggers/boardTriggers.js @@ -13,8 +13,8 @@ BlazeComponent.extendComponent({ 'click .js-open-card-title-popup'(event){ const funct = Popup.open('boardCardTitle'); const divId = $(event.currentTarget.parentNode.parentNode).attr('id'); - console.log('current popup'); - console.log(this.currentPopupTriggerId); + //console.log('current popup'); + //console.log(this.currentPopupTriggerId); this.currentPopupTriggerId = divId; funct.call(this, event); }, diff --git a/client/lib/utils.js b/client/lib/utils.js index 051ec952..e2339763 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -220,7 +220,7 @@ Utils = { finalString += element.text().toLowerCase(); } else if (element.hasClass('user-details')) { let username = element.find('input').val(); - if(username == undefined || username == ''){ + if(username === undefined || username === ''){ username = '*'; } finalString += `${element.find('.trigger-text').text().toLowerCase() } ${ username}`; @@ -228,7 +228,7 @@ Utils = { 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 == ''){ + if(inputvalue === undefined || inputvalue === ''){ inputvalue = '*'; } finalString += inputvalue; |