[ Index ]

WordPress Cross Reference

title

Body

[close]

/wp-admin/js/ -> user-suggest.js (source)

   1  /* global ajaxurl, current_site_id, isRtl */
   2  
   3  (function( $ ) {
   4      var id = ( typeof current_site_id !== 'undefined' ) ? '&site_id=' + current_site_id : '';
   5      $(document).ready( function() {
   6          var position = { offset: '0, -1' };
   7          if ( typeof isRtl !== 'undefined' && isRtl ) {
   8              position.my = 'right top';
   9              position.at = 'right bottom';
  10          }
  11          $( '.wp-suggest-user' ).autocomplete({
  12              source:    ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
  13              delay:     500,
  14              minLength: 2,
  15              position:  position,
  16              open: function() {
  17                  $( this ).addClass( 'open' );
  18              },
  19              close: function() {
  20                  $( this ).removeClass( 'open' );
  21              }
  22          });
  23      });
  24  })( jQuery );


Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu