PageSourceSearch

https://www.nomadtravel.co.uk/wp-content/plugins/woocommerce-table…/assets/js/frontend-checkout.js

js nomadtravel.co.uk collected 2026-10-03 22:22:41 UTC 879 bytes, 33 lines download raw bytes

1function wc_trs_display_abort_text( datas ) {
2	var wc_info     = jQuery( '.woocommerce-info' );
3	var wc_chk_info = jQuery( 'form.woocommerce-checkout .woocommerce-info' );
4	var has_trs     = false;
5
6	wc_chk_info.each( function ( idx, elem ) {
7		var current_elem = jQuery( elem );
8
9		// Remove the element if abort text has been found previously.
10		if ( 'yes' === current_elem.data('wc_trs') ) {
11			if ( true === has_trs ) {
12				current_elem.remove();
13			}
14
15			has_trs = true;
16		}
17	} );
18
19	if ( false === has_trs ) {
20		return;
21	}
22
23	wc_info.each( function ( idx, elem ) {
24		var current_elem = jQuery( elem );
25		if ( 'yes' === current_elem.data('wc_trs') && 1 > current_elem.parents( 'form.woocommerce-checkout' ).length ) {
26			current_elem.remove();
27		}
28	} );
29}
30
31jQuery( document.body ).on( 'updated_checkout checkout_error', function( datas ) {	
32	wc_trs_display_abort_text();
33} );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.