mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
fcd2923953
* Lengthen the inputs in the Right Now network dashboard widget * Border around the whole autocomplete widget/list * Handle long strings * Remove some CSS color cruft from the main stylesheet and de-dupe the JS closures for open/close callbacks. Props helenyhou fixes #20584 git-svn-id: http://core.svn.wordpress.org/trunk@20984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
12 lines
440 B
JavaScript
12 lines
440 B
JavaScript
jQuery( function($) {
|
|
var isRTL = !! ( 'undefined' != typeof isRtl && isRtl );
|
|
$( '#site-search-input' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-site',
|
|
delay: 500,
|
|
minLength: 2,
|
|
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'); }
|
|
});
|
|
});
|