Support disabled items, rework #MORE and prompt

master
Vitaliy Filippov 2013-03-05 16:29:11 +00:00
parent 4383d9daa8
commit db7b43e0e6
1 changed files with 2 additions and 0 deletions

View File

@ -426,6 +426,8 @@ SimpleAutocomplete.prototype.onItemMouseOver = function(elm)
SimpleAutocomplete.prototype.onItemClick = function(ev, elm)
{
var index = parseInt(elm.id.substr(this.id.length+6));
if (this.items[index][2])
return true;
if (this.moreMarker && this.items[index][1] == this.moreMarker)
{
// User clicked 'more'. Load more items without delay.