Merge pull request #19066 from woocommerce/fix/inline-edit-tooltips

Make the init tooltips after inline editing more specific
This commit is contained in:
Mike Jolley 2018-02-21 15:32:29 +00:00 committed by GitHub
commit 3b364ff1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -15,8 +15,11 @@ jQuery( function( $ ) {
$( table_selector ).find( '.column-handle' ).show();
$( document ).ajaxComplete( function() {
$( table_selector ).find( '.column-handle' ).show();
$( document ).ajaxComplete( function( event, request, options ) {
if ( request && 4 === request.readyState && 200 === request.status && options.data && 0 <= options.data.indexOf( '_inline_edit' ) ) {
$( table_selector ).find( '.column-handle' ).show();
$( document.body ).trigger( 'init_tooltips' );
}
} );
$( table_selector ).sortable({

View File

@ -160,10 +160,6 @@ jQuery( function ( $ ) {
});
// Tooltips
$( document ).ajaxComplete( function() {
$( document.body ).trigger( 'init_tooltips' );
} );
$( document.body ).trigger( 'init_tooltips' );
// wc_input_table tables