aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2015-01-20 15:00:44 +0100
committermarijus <mario@mariovavti.com>2015-01-20 15:00:44 +0100
commit33380b3c3066bab54320781f15baf7130f5e0b3c (patch)
tree3ac59db23b96baab12917d4da2d912c034ae610f /view/js/autocomplete.js
parente3041b80fd28d88b5f9ba063cb8147b9b0a61668 (diff)
downloadvolse-hubzilla-33380b3c3066bab54320781f15baf7130f5e0b3c.tar.gz
volse-hubzilla-33380b3c3066bab54320781f15baf7130f5e0b3c.tar.bz2
volse-hubzilla-33380b3c3066bab54320781f15baf7130f5e0b3c.zip
as a workaround make nav-search dropdown behave a little better
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 50ba99279..2fcf7000b 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -56,7 +56,7 @@ function contact_format(item) {
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick)
if(typeof desc === 'undefined') desc = '';
if(desc) desc = ' ('+desc+')';
- return "<div class='{0}' title='{4}'><img src='{1}'>{2}{3}</div>".format(item.taggable, item.photo, item.name, desc, item.link)
+ return "<div class='{0}' title='{4}'><img src='{1}'><b>{2}</b><br>{3}</div>".format(item.taggable, item.photo, item.name, desc, item.link)
}
else
return "<div>"+item.text+"</div>"
@@ -111,7 +111,7 @@ function submit_form(e) {
replace: function(item) { return "$1"+item['text'] + ' '; },
}
this.attr('autocomplete','off');
- this.textcomplete([contacts,smilies],{className:'acpopup',zIndex:1050});
+ this.textcomplete([contacts,smilies],{className:'acpopup',zIndex:1020});
};
})( jQuery );
@@ -130,7 +130,7 @@ function submit_form(e) {
template: contact_format,
}
this.attr('autocomplete','off');
- var a = this.textcomplete([contacts],{className:'acpopup',maxCount:100,zIndex: 1050});
+ var a = this.textcomplete([contacts],{className:'acpopup',maxCount:100,zIndex: 1020,appendTo:'nav'});
a.on('textComplete:select', function(e,value,strategy) { submit_form(this); });
@@ -153,7 +153,7 @@ function submit_form(e) {
}
this.attr('autocomplete','off');
- var a = this.textcomplete([contacts],{className:'acpopup',zIndex:1050});
+ var a = this.textcomplete([contacts],{className:'acpopup',zIndex:1020});
if(autosubmit)
a.on('textComplete:select', function(e,value,strategy) { submit_form(this); });