WordPress/wp-admin/js/user-search.js
bumpbot 74e51d0f80 Compress scripts/styles: 3.4-beta3-20707.
git-svn-id: http://core.svn.wordpress.org/trunk@20707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-02 21:58:30 +00:00

1 line
784 B
JavaScript

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&autocomplete_type=add"+b,delay:500,minLength:2,open:function(d,c){a(this).addClass("open")},close:function(d,c){a(this).removeClass("open")}});a("#user-search-input").autocomplete({source:ajaxurl+"?action=autocomplete-user&autocomplete_type=search"+b,delay:500,minLength:2,open:function(d,c){a(this).addClass("open")},close:function(d,c){a(this).removeClass("open")}});a("#all-user-search-input").autocomplete({source:ajaxurl+"?action=autocomplete-user&autocomplete_type=search-all"+b,delay:500,minLength:2,open:function(d,c){a(this).addClass("open")},close:function(d,c){a(this).removeClass("open")}})});