mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
2710bcade1
* This moves our "development" versions from .dev.js to .js (same for css). * The compressed version then moves from .js to .min.js (same for css). By switching to the standard .min convention, it sets expectations for developers, and works nicely with existing tools such as ack. fixes #21633. git-svn-id: http://core.svn.wordpress.org/trunk@21592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
13 lines
566 B
JavaScript
13 lines
566 B
JavaScript
(function($) {
|
|
var id = 'undefined' !== typeof current_site_id ? '&site_id=' + current_site_id : '';
|
|
$(document).ready( function() {
|
|
$( '.wp-suggest-user' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
|
|
delay: 500,
|
|
minLength: 2,
|
|
position: ( 'undefined' !== typeof isRtl && isRtl ) ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' },
|
|
open: function() { $(this).addClass('open'); },
|
|
close: function() { $(this).removeClass('open'); }
|
|
});
|
|
});
|
|
})(jQuery); |