equal
deleted
inserted
replaced
1 (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); |
1 (function($) { |
|
2 var id = 'undefined' !== typeof current_site_id ? '&site_id=' + current_site_id : ''; |
|
3 $(document).ready( function() { |
|
4 $( '.wp-suggest-user' ).autocomplete({ |
|
5 source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id, |
|
6 delay: 500, |
|
7 minLength: 2, |
|
8 position: ( 'undefined' !== typeof isRtl && isRtl ) ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' }, |
|
9 open: function() { $(this).addClass('open'); }, |
|
10 close: function() { $(this).removeClass('open'); } |
|
11 }); |
|
12 }); |
|
13 })(jQuery); |