Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', '') does not remove the HTML property now, see #17311

git-svn-id: http://svn.automattic.com/wordpress/trunk@18027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2011-05-25 01:04:12 +00:00
parent 51fe428865
commit 65f9c441a7
29 changed files with 80 additions and 80 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
jQuery(document).ready( function($) {
$('#link_rel').attr('readonly', 'readonly');
$('#link_rel').prop('readonly', true);
$('#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');
$(this).prop('disabled', true).parent().addClass('disabled');
} else {
$(this).removeAttr('disabled').parent().removeClass('disabled');
if ( $(this).is(':checked') && $(this).val() != '')
@@ -13,4 +13,4 @@ jQuery(document).ready( function($) {
});
$('#link_rel').val( (isMe) ? 'me' : inputs.substr(0,inputs.length - 1) );
});
});
});