diff options
author | Kenton Hamaluik <kenton@hamaluik.com> | 2015-10-03 15:59:13 -0600 |
---|---|---|
committer | Kenton Hamaluik <kenton@hamaluik.com> | 2015-10-03 15:59:13 -0600 |
commit | d105da5bc776446045a04bad83a0bb9d4a3fe50c (patch) | |
tree | e9c21680a936b755ebdbf13de9927cf78517f7a0 /client | |
parent | bfcfd2ebda283bed1caa973f27e1af6b81fe621b (diff) | |
download | wekan-d105da5bc776446045a04bad83a0bb9d4a3fe50c.tar.gz wekan-d105da5bc776446045a04bad83a0bb9d4a3fe50c.tar.bz2 wekan-d105da5bc776446045a04bad83a0bb9d4a3fe50c.zip |
Conformed to the 80-character line length limit.
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listBody.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 9d6aab88..8bc828fb 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -40,28 +40,30 @@ BlazeComponent.extendComponent({ // and applying the appropriate users and labels to the card instead. const currentBoard = Boards.findOne(Session.get('currentBoard')); - // Find all @-mentioned usernames, collect a list of their IDs - // and strip their mention out of the title. + // Find all @-mentioned usernames, collect a list of their IDs and strip + // their mention out of the title. let foundUserIds = []; currentBoard.members.forEach(member => { const username = Users.findOne(member.userId).username; let nameNdx = title.indexOf('@' + username); if(nameNdx !== -1) { foundUserIds.push(member.userId); - title = title.substr(0, nameNdx) + title.substr(nameNdx + username.length + 1); + title = title.substr(0, nameNdx) + + title.substr(nameNdx + username.length + 1); } }); - // Find all #-mentioned labels (based on their colour or name), - // collect a list of their IDs, and strip their mention out of - // the title. + // Find all #-mentioned labels (based on their colour or name), collect a + // list of their IDs, and strip their mention out of the title. let foundLabelIds = []; currentBoard.labels.forEach(label => { - const labelName = (!label.name || label.name === "") ? label.color : label.name; + const labelName = (!label.name || label.name === "") + ? label.color : label.name; let labelNdx = title.indexOf('#' + labelName); if(labelNdx !== -1) { foundLabelIds.push(label._id); - title = title.substr(0, labelNdx) + title.substr(labelNdx + labelName.length + 1); + title = title.substr(0, labelNdx) + + title.substr(labelNdx + labelName.length + 1); } }); @@ -138,7 +140,7 @@ BlazeComponent.extendComponent({ }, pressKey(evt) { - // don't do anything if the drop down is showing + // Don't do anything if the drop down is showing if(dropDownIsOpened) { return; } |