';
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);
}
else if(data.success != 1)
{
}
});
}
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=a992e4e4ab";
if(wpl_autocomplete_ajax) wpl_autocomplete_ajax.abort();
wpl_autocomplete_ajax = wpl_run_ajax_query('https://www.airdomus.com/cerca-la-tua-casa-la-tua-planimetria/', request_str);
wpl_autocomplete_ajax.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');
}
});
});