fix #MORE bug
parent
1331852c4e
commit
da1f70d67b
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
|
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
|
||||||
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
|
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
|
||||||
Version: 2015-03-25
|
Version: 2015-05-08
|
||||||
(c) Vitaliy Filippov 2011-2015
|
(c) Vitaliy Filippov 2011-2015
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
@ -318,6 +318,7 @@ SimpleAutocomplete.prototype.selectItem = function(index)
|
||||||
{
|
{
|
||||||
// User clicked 'more'. Load more items without delay.
|
// User clicked 'more'. Load more items without delay.
|
||||||
this.items.splice(index, 1);
|
this.items.splice(index, 1);
|
||||||
|
var elm = document.getElementById(this.id+'_item_'+index);
|
||||||
elm.parentNode.removeChild(elm);
|
elm.parentNode.removeChild(elm);
|
||||||
this.more++;
|
this.more++;
|
||||||
this.onChange(true);
|
this.onChange(true);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue