return;
}
var nick = this.data[id].nick;
- var searchText = "@" + nick + "+" + id + " ";
+ var addr = this.data[id].addr;
+
+ if (addr != "") {
+ var searchText = "@" + addr + " ";
+ } else {
+ var searchText = "@" + nick + "+" + id + " ";
+ }
+
var start = this.element.val().indexOf(searchText);
if (start < 0) {
return;
return;
}
var nick = this.data[id].nick;
- var searchText = "@" + nick + "+" + id + " ";
+ var addr = this.data[id].addr;
+
+ if (addr != "") {
+ var searchText = "@" + addr + " ";
+ } else {
+ var searchText = "@" + nick + "+" + id + " ";
+ }
+
if (this.element.val().indexOf( searchText) >= 0 ) {
return;
}