]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/user-suggest.js
WordPress 3.5-scripts
[autoinstalls/wordpress.git] / wp-admin / js / user-suggest.js
index 5f17b528d1b94f28fceed34cc723693ee3f65888..0bcfada4ba0ea30ab8a5bb39ae70e01ee34d5b37 100644 (file)
@@ -1 +1,13 @@
-(function(a){var b="undefined"!==typeof current_site_id?"&site_id="+current_site_id:"";a(document).ready(function(){a(".wp-suggest-user").autocomplete({source:ajaxurl+"?action=autocomplete-user&autocomplete_type=add"+b,delay:500,minLength:2,position:("undefined"!==typeof isRtl&&isRtl)?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){a(this).addClass("open")},close:function(){a(this).removeClass("open")}})})})(jQuery);
\ No newline at end of file
+(function($) {
+       var id = 'undefined' !== typeof current_site_id ? '&site_id=' + current_site_id : '';
+       $(document).ready( function() {
+               $( '.wp-suggest-user' ).autocomplete({
+                       source:    ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
+                       delay:     500,
+                       minLength: 2,
+                       position:  ( 'undefined' !== typeof isRtl && isRtl ) ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' },
+                       open:      function() { $(this).addClass('open'); },
+                       close:     function() { $(this).removeClass('open'); }
+               });
+       });
+})(jQuery);
\ No newline at end of file