Adds error event trigger for erroneous fragment retrieval (timeout or server error)

This commit is contained in:
Florian Ludwig 2018-08-14 12:25:29 +02:00
parent 6f03a5fe72
commit 1d76102395
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ jQuery( function( $ ) {
$( document.body ).trigger( 'wc_fragments_refreshed' ); $( document.body ).trigger( 'wc_fragments_refreshed' );
} }
},
error: function() {
$( document.body ).trigger( 'wc_fragments_ajax_error' );
} }
}; };