mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
- Fix lint errors.
Thanks to xet7 !
This commit is contained in:
parent
2b53fae16f
commit
f5339ef97f
4 changed files with 10 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue