mentions are now beautifull too
This commit is contained in:
parent
de0c32f961
commit
3488848906
2 changed files with 21 additions and 2 deletions
4
Core.js
4
Core.js
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
function Core(action) {
|
||||
this.max_length = 200;
|
||||
this.max_length = 20;
|
||||
// this.timeout = 2 * 60 * 1000;
|
||||
this.timeout = 10 * 1000; // every 10 seconds
|
||||
this.action = action;
|
||||
|
|
@ -403,7 +403,7 @@ function findMentions(node, mentions) {
|
|||
if(basic.name) {
|
||||
var new_text = node.innerHTML.replace(
|
||||
mention.text,
|
||||
"<strong class='name' title='" + mention.entity + "'" + ">^"
|
||||
"<strong class='name' title='" + mention.entity + "'" + ">"
|
||||
+ basic.name
|
||||
+ "</strong>"
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue