mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 10:38:11 +01:00
2a8c7bbc7a
git-svn-id: http://svn.automattic.com/wordpress/trunk@20279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
22 lines
609 B
JavaScript
22 lines
609 B
JavaScript
jQuery( function($) {
|
|
var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : '';
|
|
|
|
$( '#adduser-email, #newuser' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
|
|
delay: 500,
|
|
minLength: 2
|
|
});
|
|
|
|
$( '#user-search-input' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search' + id,
|
|
delay: 500,
|
|
minLength: 2
|
|
});
|
|
|
|
$( '#all-user-search-input' ).autocomplete({
|
|
source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search-all' + id,
|
|
delay: 500,
|
|
minLength: 2
|
|
});
|
|
});
|