Subversion Repositories SmartDukaan

Rev

Rev 24378 | Rev 24406 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24378 Rev 24380
Line 464... Line 464...
464
	
464
	
465
}
465
}
466
function getItemAheadOptions(jqElement, callback) {
466
function getItemAheadOptions(jqElement, callback) {
467
	jqElement.typeahead('destroy').typeahead({
467
	jqElement.typeahead('destroy').typeahead({
468
		source: function(q, process) {
468
		source: function(q, process) {
469
			if (q.length >= 3 && typeof queryData == "undefined"){
469
			if (q.length >= 3){
470
				return $.ajax(context+"/item", {
470
				return $.ajax(context+"/item", {
471
					global:false,
471
					global:false,
472
					data: {query : q}, 
472
					data: {query : q}, 
473
					success: function(data){
473
					success: function(data){
474
						queryData = JSON.parse(data);
474
						queryData = JSON.parse(data);