2012-02-10 09:45:17 +01:00
|
|
|
jQuery( function($) {
|
|
|
|
var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : '';
|
|
|
|
|
|
|
|
$( '#adduser-email, #newuser' ).autocomplete({
|
|
|
|
source: ajaxurl + '?action=autocomplete-user' + id,
|
|
|
|
delay: 500,
|
2012-02-10 19:05:20 +01:00
|
|
|
minLength: 2
|
2012-02-10 09:45:17 +01:00
|
|
|
});
|
|
|
|
});
|