1(function($,selector){$(selector).autocomplete({source:function(request,response){var elem=$(this.element[0]);ajax({url:elem.data('source'),data:{term:request.term},success:function(resp){response(resp.data);}});},focus:function(event,ui){$('#cityId').val(ui.item.value);$(this).val(ui.item.label);return false;},select:function(event,ui){$('#cityId').val(ui.item.value);$(this).val(ui.item.label);return false;},search:function(event,ui){$('#cityId').val(0);}});})(jQuery,'.citySelector');(function($,selector){$(selector).autocomplete({source:function(request,response){var elem=$(this.element[0]);ajax({url:elem.data('source'),data:{city:$('.citySelector').val(),cityId:$('.citySelector').data('cityId'),term:request.term},success:function(resp){response(resp.data);}});},focus:function(event,ui){$(this).val(ui.item.label);return false;},select:function(event,ui){$(this).val(ui.item.label);return false;},search:function(event,ui){}});})(jQuery,'.streetSelector');$('#zip').on('blur',function(e){ajax({url:$(this).data('url'),data:{zip:$(this).val()},success:function(res){if(res.success){$('#cityId').val(res.data.id);$('.citySelector').val(res.data.name);}}});});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.