mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 04:11:10 +01:00
2710bcade1
* This moves our "development" versions from .dev.js to .js (same for css). * The compressed version then moves from .js to .min.js (same for css). By switching to the standard .min convention, it sets expectations for developers, and works nicely with existing tools such as ack. fixes #21633. git-svn-id: http://core.svn.wordpress.org/trunk@21592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
17 lines
575 B
JavaScript
17 lines
575 B
JavaScript
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) );
|
|
});
|
|
});
|