MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.162
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/wp/plugins/jetpack/modules/widgets/milestone/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/wp/plugins/jetpack/modules/widgets/milestone/admin.js
( function ( $ ) {
	// We could either be in wp-admin/widgets.php or the customizer.
	var $container = $( '#customize-controls' );

	if ( ! $container.length ) {
		$container = $( '#wpbody' );
	}

	$container.on( 'change', '.milestone-type', function () {
		var $messageWrapper = $( this ).parent().find( '.milestone-message-wrapper' );

		$( this ).find( 'input[type="radio"]:checked' ).val() === 'since'
			? $messageWrapper.hide()
			: $messageWrapper.show();
	} );

	function triggerChange() {
		$container.find( '.milestone-type' ).trigger( 'change' );
	}

	// Used when adding widget via customizer or saving settings.
	$( document ).on( 'widget-added widget-updated', function () {
		triggerChange();
	} );

	triggerChange();
} )( jQuery );

MMCT - 2023