ldc-poule-et-toque/content/plugins/wp-term-order/js/quick-edit.js
2021-04-12 15:54:29 +02:00

8 lines
No EOL
286 B
JavaScript

jQuery( document ).ready( function( $ ) {
$( '.editinline' ).on( 'click', function() {
var tag_id = $( this ).parents( 'tr' ).attr( 'id' ),
order = $( 'td.order', '#' + tag_id ).text();
$( ':input[name="order"]', '.inline-edit-row' ).val( order );
} );
} );