<\/div>'),r=n(this.suggestionsContainer),r.appendTo("body").width(this.options.width);r.on("mouseover",u,function(){i.activate(n(this).data("index"))});r.on("click",u,function(){i.select(n(this).data("index"))});if(this.fixPosition(),window.opera)this.el.on("keypress",function(n){i.onKeyPress(n)});else this.el.on("keydown",function(n){i.onKeyPress(n)});this.el.on("keyup",function(n){i.onKeyUp(n)});this.el.on("blur",function(){i.onBlur()});this.el.on("focus",function(){i.fixPosition()})},onBlur:function(){this.enableKillerFn()},setOptions:function(t){var r=this.options;i.extend(r,t),this.isLocal=n.isArray(r.lookup),this.isLocal&&typeof r.lookup[0]=="string"&&(r.lookup=n.map(r.lookup,function(n){return{value:n,data:null}})),n(this.suggestionsContainer).css({"max-height":r.maxHeight+"px",width:r.width,"z-index":r.zIndex})},clearCache:function(){this.cachedResponse=[],this.badQueries=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},fixPosition:function(){var t=this.el.offset();n(this.suggestionsContainer).css({top:t.top+this.el.outerHeight()+"px",left:t.left+"px"})},enableKillerFn:function(){var t=this;n(document).on("click",t.killerFn)},disableKillerFn:function(){var t=this;n(document).off("click",t.killerFn)},killSuggestions:function(){var n=this;n.stopKillSuggestions(),n.intervalId=window.setInterval(function(){n.hide(),n.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(n){if(!this.disabled&&!this.visible&&n.keyCode===40&&this.currentValue){this.suggest();return}if(!this.disabled&&this.visible){switch(n.keyCode){case 27:this.el.val(this.currentValue),this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}if(this.select(this.selectedIndex),n.keyCode===9)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}n.stopImmediatePropagation(),n.preventDefault()}},onKeyUp:function(n){if(!this.disabled){switch(n.keyCode){case 38:case 40:return}if(clearInterval(this.onChangeInterval),this.currentValue!==this.el.val())if(this.options.deferRequestBy>0){var t=this;this.onChangeInterval=setInterval(function(){t.onValueChange()},this.options.deferRequestBy)}else this.onValueChange()}},onValueChange:function(){clearInterval(this.onChangeInterval),this.currentValue=this.element.value;var n=this.getQuery(this.currentValue);if(this.selectedIndex=-1,this.ignoreValueChange){this.ignoreValueChange=!1;return}n===""||n.length
'+e(i,o)+"<\/div>";r.html(u).show(),this.visible=!0,this.selectedIndex=0,r.children().first().addClass(h)},processResponse:function(t){var i=n.parseJSON(t);typeof i.suggestions[0]=="string"&&(i.suggestions=n.map(i.suggestions,function(n){return{value:n,data:null}})),this.options.noCache||(this.cachedResponse[i.query]=i,i.suggestions.length===0&&this.badQueries.push(i.query)),i.query===this.getQuery(this.currentValue)&&(this.suggestions=i.suggestions,this.suggest())},activate:function(t){var i,r=this.classes.selected,u=n(this.suggestionsContainer),f=u.children();return(u.children("."+r).removeClass(r),this.selectedIndex=t,this.selectedIndex!==-1&&f.length>this.selectedIndex)?(i=f.get(this.selectedIndex),n(i).addClass(r),i):null},select:function(n){var t=this.suggestions[n];if(t){this.el.val(t),this.ignoreValueChange=!0,this.hide();this.onSelect(n)}},change:function(t){var r,i=this,f=this.suggestions[t],u;f&&(u=i.suggestions[t],i.el.val(i.getValue(u.value)),r=i.options.onChange,n.isFunction(r)&&r(u,i.el))},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){n(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue);return}this.adjustScroll(this.selectedIndex-1)}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(t){var u=this.activate(t),i,r,f,e=25;u&&(i=u.offsetTop,r=n(this.suggestionsContainer).scrollTop(),f=r+this.options.maxHeight-e,if&&n(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+e),this.el.val(this.getValue(this.suggestions[t].value)))},onSelect:function(t){var i=this,r=i.options.onSelect,u=i.suggestions[t];i.el.val(i.getValue(u.value)),n.isFunction(r)&&r.call(i.element,u)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n}},n.fn.autocomplete=function(i,r){return this.each(function(){var f="autocomplete",e=n(this),u;typeof i=="string"?(u=e.data(f),typeof u[i]=="function"&&u[i](r)):(u=new t(this,i),e.data(f,u))})}})(jQuery);
+(function(n){"use strict";function t(i,r){var u=this,f={serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:t.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1};u.element=i,u.el=n(i),u.suggestions=[],u.badQueries=[],u.selectedIndex=-1,u.currentValue=u.element.value,u.intervalId=0,u.cachedResponse=[],u.onChangeInterval=null,u.onChange=null,u.ignoreValueChange=!1,u.isLocal=!1,u.suggestionsContainer=null,u.options=f,u.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},u.initialize(),u.setOptions(r)}var i=function(){return{extend:function(t,i){return n.extend(t,i)},addEvent:function(n,t,i){if(n.addEventListener)n.addEventListener(t,i,!1);else if(n.attachEvent)n.attachEvent("on"+t,i);else throw new Error("Browser doesn't support addEventListener or attachEvent");},removeEvent:function(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent&&n.detachEvent("on"+t,i)},createNode:function(n){var t=document.createElement("div");return t.innerHTML=n,t.firstChild}}}();t.utils=i,n.Autocomplete=t,t.formatResult=function(n,t){var i=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g"),r="("+t.replace(i,"\\$1")+")";return n.value.replace(new RegExp(r,"gi"),"$1<\/strong>")},t.prototype={killerFn:null,initialize:function(){var i=this,u="."+i.classes.suggestion,r;this.element.setAttribute("autocomplete","off"),this.killerFn=function(t){n(t.target).closest(".autocomplete").length===0&&(i.killSuggestions(),i.disableKillerFn())},this.options.width&&this.options.width!=="auto"||(this.options.width=this.el.outerWidth()),this.suggestionsContainer=t.utils.createNode('<\/div>'),r=n(this.suggestionsContainer),r.appendTo("body").width(this.options.width);r.on("mouseover",u,function(){i.activate(n(this).data("index"))});r.on("click",u,function(){i.select(n(this).data("index"))});if(this.fixPosition(),window.opera)this.el.on("keypress",function(n){i.onKeyPress(n)});else this.el.on("keydown",function(n){i.onKeyPress(n)});this.el.on("keyup",function(n){i.onKeyUp(n)});this.el.on("blur",function(){i.onBlur()});this.el.on("focus",function(){i.fixPosition()})},onBlur:function(){this.enableKillerFn()},setOptions:function(t){var r=this.options;i.extend(r,t),this.isLocal=n.isArray(r.lookup),this.isLocal&&(r.lookup=this.verifySuggestionsFormat(r.lookup)),n(this.suggestionsContainer).css({"max-height":r.maxHeight+"px",width:r.width+"px","z-index":r.zIndex})},clearCache:function(){this.cachedResponse=[],this.badQueries=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},fixPosition:function(){var t=this.el.offset();n(this.suggestionsContainer).css({top:t.top+this.el.outerHeight()+"px",left:t.left+"px"})},enableKillerFn:function(){var t=this;n(document).on("click",t.killerFn)},disableKillerFn:function(){var t=this;n(document).off("click",t.killerFn)},killSuggestions:function(){var n=this;n.stopKillSuggestions(),n.intervalId=window.setInterval(function(){n.hide(),n.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(n){if(!this.disabled&&!this.visible&&n.keyCode===40&&this.currentValue){this.suggest();return}if(!this.disabled&&this.visible){switch(n.keyCode){case 27:this.el.val(this.currentValue),this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}if(this.select(this.selectedIndex),n.keyCode===9)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}n.stopImmediatePropagation(),n.preventDefault()}},onKeyUp:function(n){if(!this.disabled){switch(n.keyCode){case 38:case 40:return}var t=this;clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.options.deferRequestBy>0?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){clearInterval(this.onChangeInterval),this.currentValue=this.element.value;var n=this.getQuery(this.currentValue);if(this.selectedIndex=-1,this.ignoreValueChange){this.ignoreValueChange=!1;return}n===""||n.length
'+r(t,u)+"<\/div>"}),t.html(i).show(),this.visible=!0,this.selectedIndex=0,t.children().first().addClass(e)},verifySuggestionsFormat:function(t){return t.length&&typeof t[0]=="string"?n.map(t,function(n){return{value:n,data:null}}):t},processResponse:function(t){var i=n.parseJSON(t);i.suggestions=this.verifySuggestionsFormat(i.suggestions),this.options.noCache||(this.cachedResponse[i.query]=i,i.suggestions.length===0&&this.badQueries.push(i.query)),i.query===this.getQuery(this.currentValue)&&(this.suggestions=i.suggestions,this.suggest())},activate:function(t){var i,r=this.classes.selected,u=n(this.suggestionsContainer),f=u.children();return(u.children("."+r).removeClass(r),this.selectedIndex=t,this.selectedIndex!==-1&&f.length>this.selectedIndex)?(i=f.get(this.selectedIndex),n(i).addClass(r),i):null},select:function(n){var t=this.suggestions[n];if(t){this.el.val(t),this.ignoreValueChange=!0,this.hide();this.onSelect(n)}},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){n(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue);return}this.adjustScroll(this.selectedIndex-1)}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(t){var u=this.activate(t),i,r,f,e=25;u&&(i=u.offsetTop,r=n(this.suggestionsContainer).scrollTop(),f=r+this.options.maxHeight-e,if&&n(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+e),this.el.val(this.getValue(this.suggestions[t].value)))},onSelect:function(t){var i=this,r=i.options.onSelect,u=i.suggestions[t];i.el.val(i.getValue(u.value)),n.isFunction(r)&&r.call(i.element,u)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n}},n.fn.autocomplete=function(i,r){return this.each(function(){var f="autocomplete",e=n(this),u;typeof i=="string"?(u=e.data(f),typeof u[i]=="function"&&u[i](r)):(u=new t(this,i),e.data(f,u))})}})(jQuery);
//@ sourceMappingURL=jquery.autocomplete.min.js.map
\ No newline at end of file
diff --git a/dist/jquery.autocomplete.min.js.map b/dist/jquery.autocomplete.min.js.map
index 1f9f855..5bc3018 100644
--- a/dist/jquery.autocomplete.min.js.map
+++ b/dist/jquery.autocomplete.min.js.map
@@ -2,7 +2,7 @@
"version":3,
"file":"jquery.autocomplete.min.js",
"lineCount":1,
-"mappings":"AAiG0C,CAAC,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,GAAG,CAAE,IAA7D,CAAkEA,KAAK,CAAC,KAAD,hEApFhH,QAAS,CAACC,CAAD,CAAI,CACV,Y,CAoCAC,SAASA,CAAY,CAACC,CAAE,CAAEC,CAAL,CAAc,CAC/B,IAAIC,EAAO,KACPC,EAAW,CACP,QAAQ,CAAE,CAAC,CACX,SAAS,CAAE,GAAG,CACd,cAAc,CAAE,CAAC,CACjB,KAAK,CAAE,CAAC,CACR,SAAS,CAAE,CAAA,CAAI,CACf,MAAM,CAAE,CAAA,CAAE,CACV,YAAY,CAAEJ,CAAYK,aAAa,CACvC,SAAS,CAAE,IAAI,CACf,MAAM,CAAE,IAAI,CACZ,IAAI,CAAE,KAAK,CACX,OAAO,CAAE,CAAA,CAAK,CACd,OAAO,CAAE,CAAA,CAZF,CAaV,CAGLF,CAAIG,QAAS,CAAEL,CAAE,CACjBE,CAAIF,GAAI,CAAEF,CAAC,CAACE,CAAD,CAAI,CACfE,CAAII,YAAa,CAAE,CAAA,CAAE,CACrBJ,CAAIK,WAAY,CAAE,CAAA,CAAE,CACpBL,CAAIM,cAAe,CAAE,EAAE,CACvBN,CAAIO,aAAc,CAA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CAAV,EAZI,CAAb,CADyB,CAlhBnC,EAoiBb,CAACC,MAAD,C",
"sources":["jquery.autocomplete.js"],
-"names":["join","$","Autocomplete","el","options","that","defaults","formatResult","element","suggestions","badQueries","selectedIndex","currentValue","value","intervalId","cachedResponse","onChangeInterval","onChange","ignoreValueChange","isLocal","suggestionsContainer","classes","initialize","setOptions","utils","extend","target","source","addEvent","eventType","handler","addEventListener","attachEvent","Error","removeEvent","removeEventListener","detachEvent","createNode","html","div","document","createElement","innerHTML","firstChild","Autocomplete.formatResult","suggestion","reEscape","RegExp","pattern","replace","prototype","suggestionSelector","container","setAttribute","killerFn",".killerFn","e","closest","length","killSuggestions","disableKillerFn","width","outerWidth","appendTo","on","activate","data","select","fixPosition","window","opera","onKeyPress","onKeyUp","onBlur","enableKillerFn","suppliedOptions","isArray","lookup","map","css","maxHeight","zIndex","clearCache","disable","disabled","enable","offset","top","outerHeight","left","off","stopKillSuggestions","setInterval","hide","clearInterval","visible","keyCode","suggest","val","moveUp","moveDown","stopImmediatePropagation","preventDefault","deferRequestBy","me","onValueChange","q","getQuery","minChars","getSuggestions","delimiter","parts","split","trim","getSuggestionsLocal","toLowerCase","grep","indexOf","response","isBadQuery","params","query","ajax","serviceUrl","type","done","txt","processResponse","i","len","formatResults","className","classSelected","selected","show","children","first","addClass","text","parseJSON","noCache","push","index","activeItem","removeClass","get","selectedValue","onSelect","change","getValue","isFunction","adjustScroll","offsetTop","upperBound","lowerBound","heightDelta","scrollTop","onSelectCallback","call","substr","fn","autocomplete","$.fn.autocomplete","args","each","dataKey","inputElement","instance","jQuery"]
+"names":["join","$","Autocomplete","el","options","that","defaults","formatResult","element","suggestions","badQueries","selectedIndex","currentValue","value","intervalId","cachedResponse","onChangeInterval","onChange","ignoreValueChange","isLocal","suggestionsContainer","classes","initialize","setOptions","utils","extend","target","source","addEvent","eventType","handler","addEventListener","attachEvent","Error","removeEvent","removeEventListener","detachEvent","createNode","html","div","document","createElement","innerHTML","firstChild","Autocomplete.formatResult","suggestion","reEscape","RegExp","pattern","replace","prototype","suggestionSelector","container","setAttribute","killerFn",".killerFn","e","closest","length","killSuggestions","disableKillerFn","width","outerWidth","appendTo","on","activate","data","select","fixPosition","window","opera","onKeyPress","onKeyUp","onBlur","enableKillerFn","suppliedOptions","isArray","lookup","verifySuggestionsFormat","css","maxHeight","zIndex","clearCache","disable","disabled","enable","offset","top","outerHeight","left","off","stopKillSuggestions","setInterval","hide","clearInterval","visible","keyCode","suggest","val","moveUp","moveDown","stopImmediatePropagation","preventDefault","deferRequestBy","onValueChange","q","getQuery","minChars","getSuggestions","delimiter","parts","split","trim","getSuggestionsLocal","toLowerCase","grep","indexOf","response","isBadQuery","params","query","ajax","serviceUrl","type","done","txt","processResponse","i","className","classSelected","selected","each","show","children","first","addClass","map","text","parseJSON","noCache","push","index","activeItem","removeClass","get","selectedValue","onSelect","adjustScroll","offsetTop","upperBound","lowerBound","heightDelta","scrollTop","getValue","onSelectCallback","isFunction","call","substr","fn","autocomplete","$.fn.autocomplete","args","dataKey","inputElement","instance","jQuery"]
}
diff --git a/spec/autocompleteBehavior.js b/spec/autocompleteBehavior.js
index 09c1a2c..60e9fc4 100644
--- a/spec/autocompleteBehavior.js
+++ b/spec/autocompleteBehavior.js
@@ -57,4 +57,14 @@ describe('Autocomplete', function () {
expect(data).toEqual('B');
});
+ it('Should convert suggestions format', function () {
+ var input = document.createElement('input'),
+ autocomplete = new $.Autocomplete(input, {
+ lookup: ['A', 'B']
+ });
+
+ expect(autocomplete.options.lookup[0].value).toBe('A');
+ expect(autocomplete.options.lookup[1].value).toBe('B');
+ });
+
});
\ No newline at end of file
diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js
index 55977b6..3bd2a3d 100644
--- a/src/jquery.autocomplete.js
+++ b/src/jquery.autocomplete.js
@@ -5,7 +5,7 @@
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
* For details, see the web site: http://www.devbridge.com/projects/autocomplete/jquery/
*
-* Last Review: 12/18/2012
+* Last Review: 12/19/2012
*/
/*jslint browser: true, white: true, plusplus: true, vars: true */
@@ -63,8 +63,7 @@
delimiter: null,
zIndex: 9999,
type: 'GET',
- noCache: false,
- enforce: false,
+ noCache: false
};
// Shared variables:
@@ -126,7 +125,7 @@
this.options.width = this.el.outerWidth();
}
- this.suggestionsContainer = Autocomplete.utils.createNode('');
+ this.suggestionsContainer = Autocomplete.utils.createNode('');
var container = $(this.suggestionsContainer);
@@ -167,11 +166,8 @@
this.isLocal = $.isArray(options.lookup);
- // Transform lookup array if it's string array:
- if (this.isLocal && typeof options.lookup[0] === 'string') {
- options.lookup = $.map(options.lookup, function (value) {
- return { value: value, data: null };
- });
+ if (this.isLocal) {
+ options.lookup = this.verifySuggestionsFormat(options.lookup);
}
// Adjust height, width and z-index:
@@ -279,17 +275,18 @@
return;
}
- clearInterval(this.onChangeInterval);
+ var that = this;
- if (this.currentValue !== this.el.val()) {
- if (this.options.deferRequestBy > 0) {
+ clearInterval(that.onChangeInterval);
+
+ if (that.currentValue !== that.el.val()) {
+ if (that.options.deferRequestBy > 0) {
// Defer lookup in case when value changes very quickly:
- var me = this;
- this.onChangeInterval = setInterval(function () {
- me.onValueChange();
- }, this.options.deferRequestBy);
+ that.onChangeInterval = setInterval(function () {
+ that.onValueChange();
+ }, that.options.deferRequestBy);
} else {
- this.onValueChange();
+ that.onValueChange();
}
}
},
@@ -297,6 +294,7 @@
onValueChange: function () {
clearInterval(this.onChangeInterval);
this.currentValue = this.element.value;
+
var q = this.getQuery(this.currentValue);
this.selectedIndex = -1;
@@ -381,21 +379,17 @@
return;
}
- var len = this.suggestions.length,
- formatResults = this.options.formatResult,
+ var formatResult = this.options.formatResult,
value = this.getQuery(this.currentValue),
- suggestion,
className = this.classes.suggestion,
classSelected = this.classes.selected,
container = $(this.suggestionsContainer),
- html = '',
- i;
+ html = '';
// Build suggestions inner HTML:
- for (i = 0; i < len; i++) {
- suggestion = this.suggestions[i];
- html += '' + formatResults(suggestion, value) + '
';
- }
+ $.each(this.suggestions, function (i, suggestion) {
+ html += '' + formatResult(suggestion, value) + '
';
+ });
container.html(html).show();
this.visible = true;
@@ -405,16 +399,22 @@
container.children().first().addClass(classSelected);
},
- processResponse: function (text) {
- var response = $.parseJSON(text);
-
+ verifySuggestionsFormat: function (suggestions) {
// If suggestions is string array, convert them to supported format:
- if (typeof response.suggestions[0] === 'string') {
- response.suggestions = $.map(response.suggestions, function (value) {
+ if (suggestions.length && typeof suggestions[0] === 'string') {
+ return $.map(suggestions, function (value) {
return { value: value, data: null };
});
}
+ return suggestions;
+ },
+
+ processResponse: function (text) {
+ var response = $.parseJSON(text);
+
+ response.suggestions = this.verifySuggestionsFormat(response.suggestions);
+
// Cache results if cache is not disabled:
if (!this.options.noCache) {
this.cachedResponse[response.query] = response;
@@ -460,23 +460,6 @@
}
},
- change: function (i) {
- var onChange,
- me = this,
- selectedValue = this.suggestions[i],
- suggestion;
-
- if (selectedValue) {
- suggestion = me.suggestions[i];
- me.el.val(me.getValue(suggestion.value));
-
- onChange = me.options.onChange;
- if ($.isFunction(onChange)) {
- onChange(suggestion, me.el);
- }
- }
- },
-
moveUp: function () {
if (this.selectedIndex === -1) {
return;
@@ -510,7 +493,7 @@
if (!activeItem) {
return;
}
-
+
offsetTop = activeItem.offsetTop;
upperBound = $(this.suggestionsContainer).scrollTop();
lowerBound = upperBound + this.options.maxHeight - heightDelta;