2012-03-24 05:54:58 +01:00
|
|
|
jQuery( function($) {
|
|
|
|
$( '#site-search-input' ).autocomplete({
|
|
|
|
source: ajaxurl + '?action=autocomplete-site',
|
|
|
|
delay: 500,
|
2012-05-02 23:33:43 +02:00
|
|
|
minLength: 2,
|
|
|
|
open: function(e, ui) { $(this).addClass('open'); },
|
|
|
|
close: function(e, ui) { $(this).removeClass('open'); }
|
2012-03-24 05:54:58 +01:00
|
|
|
});
|
|
|
|
});
|