VRFS-1110 fixed selection behavior and styling for autocomplete
This commit is contained in:
parent
b822711f1d
commit
6dc6d1b52d
|
|
@ -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' : '';
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue