Adds error event trigger for erroneous fragment retrieval (timeout or server error)
This commit is contained in:
parent
6f03a5fe72
commit
1d76102395
|
@ -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' );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue