Commit d80beb0a authored by Clément Damiens's avatar Clément Damiens

up mention update
parent 673ebdb6
...@@ -460,12 +460,13 @@ function bindEventTextAreaNews(idTextArea, idNews,data/*, isAnswer, parentCommen ...@@ -460,12 +460,13 @@ function bindEventTextAreaNews(idTextArea, idNews,data/*, isAnswer, parentCommen
textNews=data.text; textNews=data.text;
$(idTextArea).val(textNews); $(idTextArea).val(textNews);
if(typeof data.mentions != "undefined" && data.mentions.length != 0){ if(typeof data.mentions != "undefined" && data.mentions.length != 0){
text=data.text; /*text=data.text;
$.each(data.mentions, function(e,v){ $.each(data.mentions, function(e,v){
if(typeof v.slug != "undefined") if(typeof v.slug != "undefined"){
text=text.replace("@"+v.slug, v.name); text=text.replace("@"+v.slug, v.name);
}
}); });
$(idTextArea).val(text); $(idTextArea).val(text);*/
$(idTextArea).mentionsInput("update", data.mentions); $(idTextArea).mentionsInput("update", data.mentions);
} }
$(idTextArea).on('keyup ', function(e){ $(idTextArea).on('keyup ', function(e){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment