diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-10-23 16:56:55 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-10-23 16:56:55 +0200 |
commit | 31b60d82fcae64a844805a2a76a0af25fb9c16c2 (patch) | |
tree | a82d7d6e6097f67215406ea47a11671292a4dc7b /client/components/main | |
parent | b3696e1e3b366770af8c41861b5cf996cdd2378a (diff) | |
download | wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.gz wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.tar.bz2 wekan-31b60d82fcae64a844805a2a76a0af25fb9c16c2.zip |
Upgrade Meteor to 1.2.1-rc4
This version includes a more complete selection of ES2015 polyfills
that I started used across the code base, for instance by replacing
`$.trim(str)` by `str.trim()`.
Diffstat (limited to 'client/components/main')
-rw-r--r-- | client/components/main/editor.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 168c85d0..82fce641 100644 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -8,8 +8,8 @@ Template.editor.onRendered(() => { { match: /\B:([\-+\w]*)$/, search(term, callback) { - callback($.map(Emoji.values, (emoji) => { - return emoji.indexOf(term) === 0 ? emoji : null; + callback(Emoji.values.map((emoji) => { + return emoji.includes(term) ? emoji : null; })); }, template(value) { @@ -28,9 +28,9 @@ Template.editor.onRendered(() => { match: /\B@(\w*)$/, search(term, callback) { const currentBoard = Boards.findOne(Session.get('currentBoard')); - callback($.map(currentBoard.members, (member) => { + callback(currentBoard.members.map((member) => { const username = Users.findOne(member.userId).username; - return username.indexOf(term) === 0 ? username : null; + return username.includes(term) ? username : null; })); }, template(value) { |