aboutsummaryrefslogtreecommitdiffstats
path: root/js/fk.autocomplete.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-26 15:14:12 -0700
committerFriendika <info@friendika.com>2011-10-26 15:14:12 -0700
commit2d22a58324194ebb37b042658db5a8fc2d94b3a7 (patch)
treee89ebc83c48863b03181eecd7f31002c45e44ccb /js/fk.autocomplete.js
parent1aba538c96628468b84136386496ccc69050e810 (diff)
downloadvolse-hubzilla-2d22a58324194ebb37b042658db5a8fc2d94b3a7.tar.gz
volse-hubzilla-2d22a58324194ebb37b042658db5a8fc2d94b3a7.tar.bz2
volse-hubzilla-2d22a58324194ebb37b042658db5a8fc2d94b3a7.zip
@ tag completion enhancements, show url on hover and respect custom attags
Diffstat (limited to 'js/fk.autocomplete.js')
-rw-r--r--js/fk.autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js
index 1484758ad..6a1f1965a 100644
--- a/js/fk.autocomplete.js
+++ b/js/fk.autocomplete.js
@@ -65,7 +65,7 @@ ACPopup.prototype._search = function(){
that.cont.show();
$(data.items).each(function(){
html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick)
- that.add(html, this.nick);
+ that.add(html, this.nick + ' - ' + this.link);
});
} else {
that.cont.hide();
@@ -78,7 +78,7 @@ ACPopup.prototype.add = function(label, value){
var that=this;
var elm = $("<div class='acpopupitem' title='"+value+"'>"+label+"</div>");
elm.click(function(e){
- t = $(this).attr('title');
+ t = $(this).attr('title').replace(new RegExp(' \- .*'),'');
el=$(that.element);
sel = el.getSelection();
sel.start = sel.start- that.searchText.length;