PageSourceSearch

https://rp-management.de/wp-content/themes/wizors-investments/plugins/contact-form-7/contact-form-7.js

js rp-management.de collected 2026-10-07 01:28:11 UTC 2,534 bytes, 67 lines download raw bytes

1/* global jQuery, WIZORS_INVESTMENTS_STORAGE */
2
3( function() {
4	"use strict";
5
6	jQuery( document ).on( 'action.ready_wizors_investments', function() {
7
8		jQuery(".wpcf7-form").each( function () {
9
10			var $form = jQuery( this );
11
12			// CF7 checkboxes and radio - add class to correct check/uncheck pseudoelement when input at right side of the label
13			$form.find( '.wpcf7-checkbox > .wpcf7-list-item > .wpcf7-list-item-label,.wpcf7-radio > .wpcf7-list-item > .wpcf7-list-item-label' )
14				.each( function() {
15					var $label = jQuery( this );
16					if ($label.next( 'input[type="checkbox"],input[type="radio"]' ).length > 0) {
17						$label.addClass( 'wpcf7-list-item-right' );
18					}
19				} );
20			$form.find( '.wpcf7-checkbox > .wpcf7-list-item > .wpcf7-list-item-label,.wpcf7-radio > .wpcf7-list-item > .wpcf7-list-item-label,.wpcf7-wpgdprc > .wpcf7-list-item > .wpcf7-list-item-label' )
21				.on( 'click', function() {
22					var $chk = jQuery( this ).siblings( 'input[type="checkbox"],input[type="radio"]' );
23					if ( $chk.length > 0 ) {
24						if ( $chk.attr( 'type' ) == 'radio' ) {
25							jQuery( this ).parents( '.wpcf7-radio' )
26							.find( '.wpcf7-list-item-label' ).removeClass( 'wpcf7-list-item-checked' )
27							.find( 'input[type="radio"]' ).each( function(){
28								this.checked = false;
29							} );
30						}
31						$chk.get( 0 ).checked = $chk.get( 0 ).checked ? false : true;
32						jQuery( this ).toggleClass( 'wpcf7-list-item-checked', $chk.get( 0 ).checked );
33						$chk.trigger('change');
34					}
35				} );
36
37			// Remove 'disabled' from submit button if acceptance checkbox is not checked
38			var $submit = $form.find( 'input:submit' );
39			if ( $submit.length > 0 ) {
40				// Remove on first run
41				$submit.prop( 'disabled', false );
42				// Remove on change any field
43				$form.on( 'change', 'input,select,textarea', function() {
44					setTimeout( function() {
45						$submit.prop( 'disabled', false ).removeAttr( 'disabled' );
46					}, 100 );
47				} );
48				// Remove after form reset (after AJAX queries also)
49				$form.get(0).addEventListener( 'wpcf7reset', function() {
50					setTimeout( function() {
51						$submit.prop( 'disabled', false ).removeAttr( 'disabled' );
52					}, 100 );
53				} );
54				// Remove after any AJAX query
55				// Commented, because previous handler already fix a problem
56				if ( false ) {
57					jQuery( document ).on( 'ajaxComplete', function(e) {
58						setTimeout( function() {
59							$submit.prop( 'disabled', false ).removeAttr( 'disabled' );
60						}, 100 );
61					} );
62				}
63			}
64		} );
65	} );
66
67} )();

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.