403Webshell
Server IP : 192.64.112.168  /  Your IP : 18.117.100.130
Web Server : Apache
System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64
User : expressoneac ( 1128)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/expressoneac/www/wp-content/plugins/woocommerce/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/expressoneac/www/wp-content/plugins/woocommerce/assets/js/admin/order-attribution-admin.js
/*global woocommerce_admin_meta_boxes, wcTracks */
jQuery( document ).ready( ( $ ) => {
	'use strict';

	// Stand-in wcTracks.recordEvent in case Tracks is not available (for any reason).
	window.wcTracks = window.wcTracks || {};
	window.wcTracks.recordEvent = window.wcTracks.recordEvent || ( () => {} );

	// Handle the "Details" container toggle.
	$( '.woocommerce-order-attribution-details-toggle' )
		.on( 'click', ( e ) => {
			const $this = $( e.target ).closest( '.woocommerce-order-attribution-details-toggle');
			const $container = $this.closest( '.order-attribution-metabox' )
											.find( '.woocommerce-order-attribution-details-container' );
			let toggle = '';

			e.preventDefault();

			$container.fadeToggle( 250 );
			$this.find( '.toggle-text' ).toggle();
			if ( $container.hasClass( 'closed' ) ) {
				$this.attr( 'aria-expanded', 'true' );
				toggle = 'opened';
			} else {
				$this.attr( 'aria-expanded', 'false' );
				toggle = 'closed';
			}
			$container.toggleClass( 'closed' );

			window.wcTracks.recordEvent( 'order_attribution_details_toggle', {
				order_id: window.woocommerce_admin_meta_boxes.order_id,
				details: toggle
			} );
		} );
} );

Youez - 2016 - github.com/yon3zu
LinuXploit