From db7b43e0e6e2cca3c1fa9527fb86ddd186aaf12d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 5 Mar 2013 16:29:11 +0000 Subject: [PATCH] Support disabled items, rework #MORE and prompt --- hinter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hinter.js b/hinter.js index 289db72..d1671f2 100644 --- a/hinter.js +++ b/hinter.js @@ -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.