]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/xfn.js
WordPress 4.1.4-scripts
[autoinstalls/wordpress.git] / wp-admin / js / xfn.js
index 6136db535f9ef7d757449a5e96843aa9606a7530..de8401b6636f4c6955cc7b82b12e51545cc3ef79 100644 (file)
@@ -1,16 +1,17 @@
-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');
+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() + ' ';
+                               $( 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) );
+               $( '#link_rel' ).val( ( isMe ) ? 'me' : inputs.substr( 0,inputs.length - 1 ) );
        });
 });