From 33380b3c3066bab54320781f15baf7130f5e0b3c Mon Sep 17 00:00:00 2001 From: marijus Date: Tue, 20 Jan 2015 15:00:44 +0100 Subject: as a workaround make nav-search dropdown behave a little better --- view/js/autocomplete.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view/js/autocomplete.js') 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 "
{2}{3}
".format(item.taggable, item.photo, item.name, desc, item.link) + return "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else return "
"+item.text+"
" @@ -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); }); -- cgit v1.2.3 From 5ee815b2fa0b46864972a60e0171e14f91fbd2b5 Mon Sep 17 00:00:00 2001 From: marijus Date: Tue, 20 Jan 2015 21:10:41 +0100 Subject: satisfy the floated images --- view/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js/autocomplete.js') diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 2fcf7000b..0e2392976 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 "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) + return "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else return "
"+item.text+"
" -- cgit v1.2.3 From 43326a26b742430674b92347eb1e4ad8e1a16538 Mon Sep 17 00:00:00 2001 From: marijus Date: Tue, 20 Jan 2015 22:19:51 +0100 Subject: css fixes - hopefully --- view/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js/autocomplete.js') diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 0e2392976..1c524789d 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 "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) + return "
{2}{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else return "
"+item.text+"
" -- cgit v1.2.3