19842a6b22
git-svn-id: https://develop.svn.wordpress.org/trunk@20705 602fd350-edb4-49c9-b593-d223f7449a82
10 lines
270 B
JavaScript
10 lines
270 B
JavaScript
jQuery( function($) {
|
|
$( '#site-search-input' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-site',
|
|
delay: 500,
|
|
minLength: 2,
|
|
open: function(e, ui) { $(this).addClass('open'); },
|
|
close: function(e, ui) { $(this).removeClass('open'); }
|
|
});
|
|
});
|