';
if(location_level != 'zips') wplj("#wpl_listing_location_level_container" + field_id + '_' + parent_level).after(html);
else if(location_level != 'zips' && location_method == '2') wplj("#wpl_listing_all_location_container"+field_id).append(html);
else if(location_level == 'zips') wplj("#wpl_listing_all_location_container"+field_id).append(html);
}
}
});
}
jQuery(document).ready(function()
{
var wpl_autocomplete_ajax;
wplj(".wpl_location_indicator_textbox").autocomplete(
{
source: function(request, response)
{
var request_str = "wpl_format=b:listing:ajax&wpl_function=get_suggestions&column="+wplj(this.element).data('column')+"&kind=3&term="+request.term+"&_wpnonce=22af0059f2";
if(wpl_autocomplete_ajax) wpl_autocomplete_ajax.abort();
wplj.ajax({
type: 'POST',
dataType: 'JSON',
url: 'https://www.airdomus.com/cerca-la-tua-casa-la-tua-planimetria/',
data: request_str,
success: function (data) {
response(data);
}
});
},
minLength: 3,
select: function(event, ui)
{
wplj(this).removeClass('ui-autocomplete-loading').trigger('change');
},
change: function(event, ui)
{
wplj(this).removeClass('ui-autocomplete-loading');
}
});
});