2012-03-24 00:54:58 -04:00
|
|
|
jQuery( function($) {
|
2012-06-04 10:50:50 -04:00
|
|
|
var isRTL = !! ( 'undefined' != typeof isRtl && isRtl );
|
2012-03-24 00:54:58 -04:00
|
|
|
$( '#site-search-input' ).autocomplete({
|
2012-06-04 10:50:50 -04:00
|
|
|
source: ajaxurl + '?action=autocomplete-site',
|
|
|
|
delay: 500,
|
2012-05-02 17:33:43 -04:00
|
|
|
minLength: 2,
|
2012-06-04 10:50:50 -04:00
|
|
|
position: isRTL ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' },
|
|
|
|
open: function(e, ui) { $(this).addClass('open'); },
|
|
|
|
close: function(e, ui) { $(this).removeClass('open'); }
|
2012-03-24 00:54:58 -04:00
|
|
|
});
|
|
|
|
});
|