Skip to content

Commit

Permalink
up mention update
Browse files Browse the repository at this point in the history
  • Loading branch information
clement59 committed Jun 18, 2018
1 parent 673ebdb commit d80beb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/js/news/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,13 @@ function bindEventTextAreaNews(idTextArea, idNews,data/*, isAnswer, parentCommen
textNews=data.text;
$(idTextArea).val(textNews);
if(typeof data.mentions != "undefined" && data.mentions.length != 0){
text=data.text;
/*text=data.text;
$.each(data.mentions, function(e,v){
if(typeof v.slug != "undefined")
if(typeof v.slug != "undefined"){
text=text.replace("@"+v.slug, v.name);
}
});
$(idTextArea).val(text);
$(idTextArea).val(text);*/
$(idTextArea).mentionsInput("update", data.mentions);
}
$(idTextArea).on('keyup ', function(e){
Expand Down

0 comments on commit d80beb0

Please sign in to comment.