Skip to content
Browse files

Fixed autocomplete data fetcher.

  • Loading branch information...
1 parent bc6c880 commit fa02ef31da15513125cba6b56988382d31014a2f @carlo committed Aug 31, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 js/main.js
View
7 js/main.js
@@ -15,10 +15,9 @@ $( document ).ready( function() {
$.ajax({
url: "./index.json",
- type: "json",
- complete: function( data ) {
- var acdata = $.parseJSON( data.responseText ),
- supply = [];
+ dataType: "json",
+ success: function( acdata ) {
+ var supply = [];
$.each( acdata, function( i, dataset ) {
var key = "show_" + dataset.access,

0 comments on commit fa02ef3

Please sign in to comment.
Something went wrong with that request. Please try again.