GRAYBYTE WORDPRESS FILE MANAGER2141

Server IP : 162.213.255.40 / Your IP : 216.73.216.149
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/assets/js/admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/assets/js/admin//users.js
/*global wc_users_params */
jQuery( function ( $ ) {

	/**
	 * Users country and state fields
	 */
	var wc_users_fields = {
		states: null,
		init: function() {
			if ( typeof wc_users_params.countries !== 'undefined' ) {
				/* State/Country select boxes */
				this.states = JSON.parse( wc_users_params.countries.replace( /"/g, '"' ) );
			}

			$( '.js_field-country' ).selectWoo().on( 'change', this.change_country );
			$( '.js_field-country' ).trigger( 'change', [ true ] );
			$( document.body ).on( 'change', 'select.js_field-state', this.change_state );

			$( document.body ).on( 'click', 'button.js_copy-billing', this.copy_billing );
		},

		change_country: function( e, stickValue ) {
			// Check for stickValue before using it
			if ( typeof stickValue === 'undefined' ) {
				stickValue = false;
			}

			// Prevent if we don't have the metabox data
			if ( wc_users_fields.states === null ) {
				return;
			}

			var $this = $( this ),
				country = $this.val(),
				$state = $this.parents( '.form-table' ).find( ':input.js_field-state' ),
				$parent = $state.parent(),
				input_name = $state.attr( 'name' ),
				input_id = $state.attr( 'id' ),
				stickstatefield = 'woocommerce.stickState-' + country,
				value = $this.data( stickstatefield ) ? $this.data( stickstatefield ) : $state.val(),
				placeholder = $state.attr( 'placeholder' ),
				$newstate;

			if ( stickValue ){
				$this.data( 'woocommerce.stickState-' + country, value );
			}

			// Remove the previous DOM element
			$parent.show().find( '.select2-container' ).remove();

			if ( ! $.isEmptyObject( wc_users_fields.states[ country ] ) ) {
				var state          = wc_users_fields.states[ country ],
					$defaultOption = $( '<option value=""></option>' )
						.text( wc_users_fields.i18n_select_state_text );

				$newstate = $( '<select style="width: 25em;"></select>' )
					.prop( 'id', input_id )
					.prop( 'name', input_name )
					.prop( 'placeholder', placeholder )
					.addClass( 'js_field-state' )
					.append( $defaultOption );

				$.each( state, function( index ) {
					var $option = $( '<option></option>' )
						.prop( 'value', index )
						.text( state[ index ] );
					$newstate.append( $option );
				} );

				$newstate.val( value );

				$state.replaceWith( $newstate );

				$newstate.show().selectWoo().hide().trigger( 'change' );
			} else {
				$newstate = $( '<input type="text" />' )
					.prop( 'id', input_id )
					.prop( 'name', input_name )
					.prop( 'placeholder', placeholder )
					.addClass( 'js_field-state regular-text' )
					.val( value );
				$state.replaceWith( $newstate );
			}

			// This event has a typo - deprecated in 2.5.0
			$( document.body ).trigger( 'contry-change.woocommerce', [country, $( this ).closest( 'div' )] );
			$( document.body ).trigger( 'country-change.woocommerce', [country, $( this ).closest( 'div' )] );
		},

		change_state: function() {
			// Here we will find if state value on a select has changed and stick it to the country data
			var $this = $( this ),
				state    = $this.val(),
				$country = $this.parents( '.form-table' ).find( ':input.js_field-country' ),
				country  = $country.val();

			$country.data( 'woocommerce.stickState-' + country, state );
		},

		copy_billing: function( event ) {
			event.preventDefault();

			$( '#fieldset-billing' ).find( 'input, select' ).each( function( i, el ) {
				// The address keys match up, except for the prefix
				var shipName = el.name.replace( /^billing_/, 'shipping_' );
				// Swap prefix, then check if there are any elements
				var shipEl = $( '[name="' + shipName + '"]' );
				// No corresponding shipping field, skip this item
				if ( ! shipEl.length ) {
					return;
				}
				// Found a matching shipping element, update the value
				shipEl.val( el.value ).trigger( 'change' );
			} );
		}
	};

	wc_users_fields.init();

});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
api-keys.js
3.893 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
api-keys.min.js
2.227 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
backbone-modal.js
4.354 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
backbone-modal.min.js
2.771 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
marketplace-suggestions.js
15.591 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
marketplace-suggestions.min.js
6.289 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-coupon.js
2.026 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-coupon.min.js
1.19 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-order.js
49.688 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-order.min.js
30.898 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product-variation.js
40.542 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product-variation.min.js
21.734 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product.js
33.749 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product.min.js
17.729 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes.js
4.876 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes.min.js
2.969 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
network-orders.js
2.338 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
network-orders.min.js
1.251 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
order-attribution-admin.js
1.157 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
order-attribution-admin.min.js
0.713 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-editor.js
0.396 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-editor.min.js
0.234 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-ordering.js
2.487 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-ordering.min.js
1.614 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
quick-edit.js
6.779 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
quick-edit.min.js
4.424 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
reports.js
6.31 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
reports.min.js
3.175 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings-views-html-settings-tax.js
12.082 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings-views-html-settings-tax.min.js
6.08 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings.js
6.891 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings.min.js
4.315 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
system-status.js
5.292 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
system-status.min.js
3.064 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
term-ordering.js
4.565 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
term-ordering.min.js
2.473 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
users.js
3.784 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
users.min.js
1.87 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-clipboard.js
0.849 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-clipboard.min.js
0.328 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-enhanced-select.js
13.58 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-enhanced-select.min.js
7.707 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-orders.js
1.977 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-orders.min.js
1.167 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-export.js
3.632 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-export.min.js
2.018 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-import.js
2.925 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-import.min.js
1.701 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-setup.js
10.049 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-setup.min.js
6.35 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-classes.js
6.421 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-classes.min.js
3.412 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zone-methods.js
27.039 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zone-methods.min.js
14.438 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zones.js
8.969 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zones.min.js
4.711 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-status-widget.js
0.804 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-status-widget.min.js
0.57 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
woocommerce_admin.js
19.732 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
woocommerce_admin.min.js
10.685 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF