diff options
author | Corey Hulen <corey@hulen.com> | 2015-06-25 10:59:39 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-06-25 10:59:39 -0400 |
commit | 39e5f7913ddd5a496ad36560f17fa2b3b475fad0 (patch) | |
tree | 5290c9037addf59868bd2fa7e6f01967bc3aba52 /web/react | |
parent | 362afd1b7faf8ad2c17a77e1f1ac9d3dd692cd24 (diff) | |
parent | f4d5f52836e72905357fcb890d30e070bbbac8c1 (diff) | |
download | chat-39e5f7913ddd5a496ad36560f17fa2b3b475fad0.tar.gz chat-39e5f7913ddd5a496ad36560f17fa2b3b475fad0.tar.bz2 chat-39e5f7913ddd5a496ad36560f17fa2b3b475fad0.zip |
Merge pull request #19 from mattermost/mm-1235
fixes mm-1235 clicking on mentions now works properly
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index f358f6c05..a5d1e8895 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -418,7 +418,7 @@ module.exports.textToJsx = function(text, options) { highlightSearchClass = " search-highlight"; } - inner.push(<span key={name+i+z+"_span"}>{prefix}<a className={mClass + highlightSearchClass + " mention-link"} key={name+i+z+"_link"} href="#" onClick={function() {module.exports.searchForTerm(name);}}>@{name}</a>{suffix} </span>); + inner.push(<span key={name+i+z+"_span"}>{prefix}<a className={mClass + highlightSearchClass + " mention-link"} key={name+i+z+"_link"} href="#" onClick={function(value) { return function() { module.exports.searchForTerm(value); } }(name)}>@{name}</a>{suffix} </span>); } else if (urlMatcher.test(word)) { var match = urlMatcher.match(word)[0]; var link = match.url; |