1( function( $ ) { 2 3 $( document ).ready( function() { 4 5 /** 6 * Remove seat from cart 7 */ 8 $( 'body' ).on( 'click', '.tc_cart_remove_icon', function( e ) { 9 10 e.preventDefault(); 11 $( this ).find( 'i' ).attr( 'style', 'opacity:0;' ); 12 $( this ).prepend( '<div class="tc-delete-loader"></div>' ); 13 14 // Tickera Standalone 15 $( '#tickera_cart .tc-cart-form-inner' ).append( '<div class="tc-form-disable"></div>' ); 16 17 // Tickera + Bridge for Woocommerce 18 $( 'form[name="checkout"].woocommerce-checkout' ).css( { 'position': 'relative' } ).append( '<div class="tc-form-disable"></div>' ); 19 20 let seat_ticket_type_id = $( this ).data( 'ticket-type-id' ), 21 seat_sign = $( this ).data( 'seat-sign' ), 22 chart_id = $( this ).data( 'chart-id' ), 23 seat_id = $( this ).data( 'seat-id' ), 24 tcsc_seat = chart_id + '-' + seat_id + '-' + seat_ticket_type_id; 25 26 if ( tc_seat_chart_cart_ajax.firebase_integration == 1 ) { 27 $.post( tc_seat_chart_cart_ajax.ajaxUrl, { 28 action: "tc_remove_seat_from_firebase_cart", 29 seat_ticket_type_id: seat_ticket_type_id, 30 seat_sign: seat_sign, 31 seat_id: seat_id, 32 chart_id: chart_id 33 }, function( data ) { 34 35 } ); 36 } 37 38 $.post( tc_seat_chart_cart_ajax.ajaxUrl, { action: 'tc_remove_seat_from_cart_ajax', tcsc_seat: tcsc_seat }, function( response ) { 39 if ( response ) { 40 window.location.href = window.location.href; 41 } 42 } ); 43 } ); 44 } ); 45 46} )( jQuery );
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.