Skip to content
Snippets Groups Projects
Commit e22a5239 authored by Chris Hallberg's avatar Chris Hallberg Committed by Demian Katz
Browse files

Hover css addition and js logic mouseover removal.

- Resolves VUFIND-1148.
parent 03d9716c
No related merge requests found
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -57,12 +57,7 @@ ...@@ -57,12 +57,7 @@
item.attr('data-index', i+0) item.attr('data-index', i+0)
.attr('data-value', data[i].val) .attr('data-value', data[i].val)
.addClass('item') .addClass('item')
.html(content) .html(content);
.mouseover(function() {
$.fn.autocomplete.element.find('.item.selected').removeClass('selected');
$(this).addClass('selected');
input.data('selected', $(this).data('index'));
});
if (typeof data[i].description !== 'undefined') { if (typeof data[i].description !== 'undefined') {
item.append($('<small/>').text(data[i].description)); item.append($('<small/>').text(data[i].description));
} }
......
...@@ -158,10 +158,13 @@ label.list-group-item { ...@@ -158,10 +158,13 @@ label.list-group-item {
border-bottom: 1px solid @list-group-border; border-bottom: 1px solid @list-group-border;
cursor: pointer; cursor: pointer;
&:not(.loading):hover { background-color: lighten(@brand-primary, 50%); }
&:last-child {border: 0;} &:last-child {border: 0;}
&.selected { &.selected {
background-color: @brand-primary; &,&:hover {
color: #fff; background-color: @brand-primary;
color: #fff;
}
} }
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment