1b0ea3c637
git-svn-id: https://develop.svn.wordpress.org/trunk@13984 602fd350-edb4-49c9-b593-d223f7449a82
16 lines
586 B
JavaScript
16 lines
586 B
JavaScript
jQuery(document).ready( function($) {
|
|
$('#link_rel').attr('readonly', 'readonly');
|
|
$('#linkxfndiv input').bind('click keyup', function() {
|
|
var isMe = $('#me').is(':checked'), inputs = '';
|
|
$('input.valinp').each( function() {
|
|
if (isMe) {
|
|
$(this).attr('disabled', 'disabled').parent().addClass('disabled');
|
|
} else {
|
|
$(this).removeAttr('disabled').parent().removeClass('disabled');
|
|
if ( $(this).is(':checked') && $(this).val() != '')
|
|
inputs += $(this).val() + ' ';
|
|
}
|
|
});
|
|
$('#link_rel').val( (isMe) ? 'me' : inputs.substr(0,inputs.length - 1) );
|
|
});
|
|
}); |