mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Autocomplete site names in Network Admin. More user completion areas. props Japh, DrewAPicture. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@20279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2,8 +2,20 @@ jQuery( function($) {
|
||||
var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : '';
|
||||
|
||||
$( '#adduser-email, #newuser' ).autocomplete({
|
||||
source: ajaxurl + '?action=autocomplete-user' + id,
|
||||
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
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user