Fix another bug: previously selected disabled item losed disabled class when hovering another itemn
parent
7ce57a0af6
commit
f328abfe03
|
@ -2,6 +2,7 @@
|
|||
|
||||
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
|
||||
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
|
||||
Version: 2013-10-18
|
||||
(c) Vitaliy Filippov 2011-2013
|
||||
|
||||
Usage:
|
||||
|
@ -269,7 +270,9 @@ SimpleAutocomplete.prototype.highlightItem = function(elem)
|
|||
{
|
||||
var c = this.getItem();
|
||||
if (c)
|
||||
c.className = 'hintItem';
|
||||
{
|
||||
c.className = this.items[this.selectedIndex][2] ? 'hintDisabledItem' : 'hintItem';
|
||||
}
|
||||
}
|
||||
this.selectedIndex = ni;
|
||||
elem.className = 'hintActiveItem';
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue