mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +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:
@@ -0,0 +1,7 @@
|
||||
jQuery( function($) {
|
||||
$( '#site-search-input' ).autocomplete({
|
||||
source: ajaxurl + '?action=autocomplete-site',
|
||||
delay: 500,
|
||||
minLength: 2
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
jQuery(function($){$("#site-search-input").autocomplete({source:ajaxurl+"?action=autocomplete-site",delay:500,minLength:2})});
|
||||
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1 +1 @@
|
||||
jQuery(function(a){var b=typeof(current_site_id)!="undefined"?"&site_id="+current_site_id:"";a("#adduser-email, #newuser").autocomplete({source:ajaxurl+"?action=autocomplete-user"+b,delay:500,minLength:2})});
|
||||
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})});
|
||||
Reference in New Issue
Block a user