VRFS-1110 fixed selection behavior and styling for autocomplete

This commit is contained in:
Jonathan Kolyer 2014-02-18 01:27:02 -06:00
parent b822711f1d
commit 6dc6d1b52d
2 changed files with 5 additions and 4 deletions

View File

@ -70,9 +70,6 @@
onSelect: addInvitation,
serviceUrl: '/api/search.json?srch_sessinv=1',
minChars: 3,
onSearchComplete: function(query, suggestions) {
console.log(query+" suggestions:", suggestions);
},
};
$('#friend-input').attr("placeholder", "Type a friend\'s name").prop('disabled', false);
@ -104,6 +101,10 @@
}
function addInvitation(value, data) {
if (undefined === data) {
data = value.data;
value = value.value;
}
if (0 > invitedFriends.indexOf(data)) {
var template = $('#template-added-invitation').html();
var imgStyle = _inviteExists(data) ? 'display:none' : '';

View File

@ -235,7 +235,7 @@ input[type="button"] {
_overflow-x:hidden;
}
.autocomplete-suggestions { border: 1px solid #999; background: #FFF; overflow: auto; }
.autocomplete-suggestions { border: 1px solid #999; background: #666; overflow: auto; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
.autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }