wp/wp-admin/js/xfn.js
changeset 18 be944660c56a
parent 16 a86126ab1dd4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
     2  * Generates the XHTML Friends Network 'rel' string from the inputs.
     2  * Generates the XHTML Friends Network 'rel' string from the inputs.
     3  *
     3  *
     4  * @deprecated 3.5.0
     4  * @deprecated 3.5.0
     5  * @output wp-admin/js/xfn.js
     5  * @output wp-admin/js/xfn.js
     6  */
     6  */
     7 jQuery( document ).ready(function( $ ) {
     7 jQuery( function( $ ) {
     8 	$( '#link_rel' ).prop( 'readonly', true );
     8 	$( '#link_rel' ).prop( 'readonly', true );
     9 	$( '#linkxfndiv input' ).bind( 'click keyup', function() {
     9 	$( '#linkxfndiv input' ).on( 'click keyup', function() {
    10 		var isMe = $( '#me' ).is( ':checked' ), inputs = '';
    10 		var isMe = $( '#me' ).is( ':checked' ), inputs = '';
    11 		$( 'input.valinp' ).each( function() {
    11 		$( 'input.valinp' ).each( function() {
    12 			if ( isMe ) {
    12 			if ( isMe ) {
    13 				$( this ).prop( 'disabled', true ).parent().addClass( 'disabled' );
    13 				$( this ).prop( 'disabled', true ).parent().addClass( 'disabled' );
    14 			} else {
    14 			} else {