mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
@ tag completion enhancements, show url on hover and respect custom attags
This commit is contained in:
parent
1aba538c96
commit
2d22a58324
5 changed files with 37 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue