]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/xfn.dev.js
Wordpress 3.2
[autoinstalls/wordpress.git] / wp-admin / js / xfn.dev.js
index 053ae7eb503ba29ddc9dd18cf59faeaada307433..6136db535f9ef7d757449a5e96843aa9606a7530 100644 (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) );
        });
-});
\ No newline at end of file
+});