[ Root ] [ Search ] [ Index ]

PHP Cross Reference of WordPress 3.0.1

Provided by Yoast

title

Body

[close]

/wp-admin/js/ -> xfn.dev.js (source)

   1  jQuery(document).ready( function($) {
   2      $('#link_rel').attr('readonly', 'readonly');
   3      $('#linkxfndiv input').bind('click keyup', function() {
   4          var isMe = $('#me').is(':checked'), inputs = '';
   5          $('input.valinp').each( function() {
   6              if (isMe) {
   7                  $(this).attr('disabled', 'disabled').parent().addClass('disabled');
   8              } else {
   9                  $(this).removeAttr('disabled').parent().removeClass('disabled');
  10                  if ( $(this).is(':checked') && $(this).val() != '')
  11                      inputs += $(this).val() + ' ';
  12              }
  13          });
  14          $('#link_rel').val( (isMe) ? 'me' : inputs.substr(0,inputs.length - 1) );
  15      });
  16  });


Generated: Thu Oct 14 05:12:05 2010 Cross-referenced by PHPXref 0.7