[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 /** 2 * Generates the XHTML Friends Network 'rel' string from the inputs. 3 * 4 * @deprecated 3.5.0 5 * @output wp-admin/js/xfn.js 6 */ 7 jQuery( function( $ ) { 8 $( '#link_rel' ).prop( 'readonly', true ); 9 $( '#linkxfndiv input' ).on( 'click keyup', function() { 10 var isMe = $( '#me' ).is( ':checked' ), inputs = ''; 11 $( 'input.valinp' ).each( function() { 12 if ( isMe ) { 13 $( this ).prop( 'disabled', true ).parent().addClass( 'disabled' ); 14 } else { 15 $( this ).removeAttr( 'disabled' ).parent().removeClass( 'disabled' ); 16 if ( $( this ).is( ':checked' ) && $( this ).val() !== '') { 17 inputs += $( this ).val() + ' '; 18 } 19 } 20 }); 21 $( '#link_rel' ).val( ( isMe ) ? 'me' : inputs.substr( 0,inputs.length - 1 ) ); 22 }); 23 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |