You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
575 B
16 lines
575 B
jQuery(document).ready( function($) {
|
|
$('#link_rel').prop('readonly', true);
|
|
$('#linkxfndiv input').bind('click keyup', function() {
|
|
var isMe = $('#me').is(':checked'), inputs = '';
|
|
$('input.valinp').each( function() {
|
|
if (isMe) {
|
|
$(this).prop('disabled', true).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) );
|
|
});
|
|
});
|