equal
deleted
inserted
replaced
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); |
|