HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/pianob/wp-content/plugins/hbook/admin-pages/pages/reservations/resa-export.js
jQuery( document ).ready( function( $ ) {

	$( '#hb-export-resa-cancel' ).click( function() {
		$( '#hb-export-resa' ).slideUp( function() {
			$( '#hb-export-resa-toggle .dashicons-arrow-down' ).css( 'display', 'inline-block' );
			$( '#hb-export-resa-toggle .dashicons-arrow-up' ).hide();
		});
		return false;
	});

	$( '#hb-export-resa-select-all-accom' ).click( function() {
		$( this ).blur();
		$( 'input[name="hb-export-resa-accom[]"]' ).prop( 'checked', true );
		return false;
	});

	$( '#hb-export-resa-unselect-all-accom' ).click( function() {
		$( this ).blur();
		$( 'input[name="hb-export-resa-accom[]"]' ).prop( 'checked', false );
		return false;
	});

	$( '#hb-export-resa-select-all-data' ).click( function() {
		$( this ).blur();
		$( 'input[name="hb-resa-data-export[]"]' ).prop( 'checked', true );
		return false;
	});

	$( '#hb-export-resa-unselect-all-data' ).click( function() {
		$( this ).blur();
		$( 'input[name="hb-resa-data-export[]"]' ).prop( 'checked', false );
		return false;
	});

	$( '#hb-export-resa-selection-received-date-from, #hb-export-resa-selection-received-date-to' ).focus( function() {
		$( '#hb-export-resa-selection-received-date' ).prop( 'checked', true );
	});

	$( '#hb-export-resa-selection-check-in-date-from, #hb-export-resa-selection-check-in-date-to' ).focus( function() {
		$( '#hb-export-resa-selection-check-in-date' ).prop( 'checked', true );
	});

	$( '#hb-export-resa-selection-check-out-date-from, #hb-export-resa-selection-check-out-date-to' ).focus( function() {
		$( '#hb-export-resa-selection-check-out-date' ).prop( 'checked', true );
	});

	$( '#hb-export-resa-download' ).click( function() {
		$( this ).blur();
		if ( ! $( 'input[name="hb-resa-data-export[]"]:checked').length ) {
			alert( hb_text.no_export_data_selected );
			return false;
		}
		if (
			$( 'input[name="hb-export-resa-accom[]"]' ).length &&
			! $( 'input[name="hb-export-resa-accom[]"]:checked').length
		) {
			alert( hb_text.no_export_accom_selected );
			return false;
		}
		$( '#hb-export-resa-form' ).submit();
		return false;
	});

});