GRAYBYTE WORDPRESS FILE MANAGER2488

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//settings.js
/* global woocommerce_settings_params, wp */
( function ( $, params, wp ) {
	$( function () {
		// Sell Countries
		$( 'select#woocommerce_allowed_countries' )
			.on( 'change', function () {
				if ( 'specific' === $( this ).val() ) {
					$( this ).closest( 'tr' ).next( 'tr' ).hide();
					$( this ).closest( 'tr' ).next().next( 'tr' ).show();
				} else if ( 'all_except' === $( this ).val() ) {
					$( this ).closest( 'tr' ).next( 'tr' ).show();
					$( this ).closest( 'tr' ).next().next( 'tr' ).hide();
				} else {
					$( this ).closest( 'tr' ).next( 'tr' ).hide();
					$( this ).closest( 'tr' ).next().next( 'tr' ).hide();
				}
			} )
			.trigger( 'change' );

		// Ship Countries
		$( 'select#woocommerce_ship_to_countries' )
			.on( 'change', function () {
				if ( 'specific' === $( this ).val() ) {
					$( this ).closest( 'tr' ).next( 'tr' ).show();
				} else {
					$( this ).closest( 'tr' ).next( 'tr' ).hide();
				}
			} )
			.trigger( 'change' );

		// Stock management
		$( 'input#woocommerce_manage_stock' )
			.on( 'change', function () {
				if ( $( this ).is( ':checked' ) ) {
					$( this )
						.closest( 'tbody' )
						.find( '.manage_stock_field' )
						.closest( 'tr' )
						.show();
				} else {
					$( this )
						.closest( 'tbody' )
						.find( '.manage_stock_field' )
						.closest( 'tr' )
						.hide();
				}
			} )
			.trigger( 'change' );

		// Color picker
		$( '.colorpick' )
			.iris( {
				change: function ( event, ui ) {
					$( this )
						.parent()
						.find( '.colorpickpreview' )
						.css( { backgroundColor: ui.color.toString() } );
				},
				hide: true,
				border: true,
			} )

			.on( 'click focus', function ( event ) {
				event.stopPropagation();
				$( '.iris-picker' ).hide();
				$( this ).closest( 'td' ).find( '.iris-picker' ).show();
				$( this ).data( 'originalValue', $( this ).val() );
			} )

			.on( 'change', function () {
				if ( $( this ).is( '.iris-error' ) ) {
					var original_value = $( this ).data( 'originalValue' );

					if (
						original_value.match(
							/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
						)
					) {
						$( this )
							.val( $( this ).data( 'originalValue' ) )
							.trigger( 'change' );
					} else {
						$( this ).val( '' ).trigger( 'change' );
					}
				}
			} );

		$( 'body' ).on( 'click', function () {
			$( '.iris-picker' ).hide();
		} );

		// Edit prompt
		$( function () {
			var changed = false;
			let $check_column = $( '.wp-list-table .check-column' );

			$( 'input, textarea, select, checkbox' ).on( 'change', function (
				event
			) {
				// Toggling WP List Table checkboxes should not trigger navigation warnings.
				if (
					$check_column.length &&
					$check_column.has( event.target )
				) {
					return;
				}

				if ( ! changed ) {
					window.onbeforeunload = function () {
						return params.i18n_nav_warning;
					};
					changed = true;
				}
			} );

			$( '.submit :input, input#search-submit' ).on(
				'click',
				function () {
					window.onbeforeunload = '';
				}
			);
		} );

		// Sorting
		$( 'table.wc_gateways tbody, table.wc_shipping tbody' ).sortable( {
			items: 'tr',
			cursor: 'move',
			axis: 'y',
			handle: 'td.sort',
			scrollSensitivity: 40,
			helper: function ( event, ui ) {
				ui.children().each( function () {
					$( this ).width( $( this ).width() );
				} );
				ui.css( 'left', '0' );
				return ui;
			},
			start: function ( event, ui ) {
				ui.item.css( 'background-color', '#f6f6f6' );
			},
			stop: function ( event, ui ) {
				ui.item.removeAttr( 'style' );
				ui.item.trigger( 'updateMoveButtons' );
			},
		} );

		// Select all/none
		$( '.woocommerce' ).on( 'click', '.select_all', function () {
			$( this )
				.closest( 'td' )
				.find( 'select option' )
				.prop( 'selected', true );
			$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
			return false;
		} );

		$( '.woocommerce' ).on( 'click', '.select_none', function () {
			$( this )
				.closest( 'td' )
				.find( 'select option' )
				.prop( 'selected', false );
			$( this ).closest( 'td' ).find( 'select' ).trigger( 'change' );
			return false;
		} );

		// Re-order buttons.
		$( '.wc-item-reorder-nav' )
			.find( '.wc-move-up, .wc-move-down' )
			.on( 'click', function () {
				var moveBtn = $( this ),
					$row = moveBtn.closest( 'tr' );

				moveBtn.trigger( 'focus' );

				var isMoveUp = moveBtn.is( '.wc-move-up' ),
					isMoveDown = moveBtn.is( '.wc-move-down' );

				if ( isMoveUp ) {
					var $previewRow = $row.prev( 'tr' );

					if ( $previewRow && $previewRow.length ) {
						$previewRow.before( $row );
						wp.a11y.speak( params.i18n_moved_up );
					}
				} else if ( isMoveDown ) {
					var $nextRow = $row.next( 'tr' );

					if ( $nextRow && $nextRow.length ) {
						$nextRow.after( $row );
						wp.a11y.speak( params.i18n_moved_down );
					}
				}

				moveBtn.trigger( 'focus' ); // Re-focus after the container was moved.
				moveBtn.closest( 'table' ).trigger( 'updateMoveButtons' );
			} );

		$( '.wc-item-reorder-nav' )
			.closest( 'table' )
			.on( 'updateMoveButtons', function () {
				var table = $( this ),
					lastRow = $( this ).find( 'tbody tr:last' ),
					firstRow = $( this ).find( 'tbody tr:first' );

				table
					.find( '.wc-item-reorder-nav .wc-move-disabled' )
					.removeClass( 'wc-move-disabled' )
					.attr( { tabindex: '0', 'aria-hidden': 'false' } );
				firstRow
					.find( '.wc-item-reorder-nav .wc-move-up' )
					.addClass( 'wc-move-disabled' )
					.attr( { tabindex: '-1', 'aria-hidden': 'true' } );
				lastRow
					.find( '.wc-item-reorder-nav .wc-move-down' )
					.addClass( 'wc-move-disabled' )
					.attr( { tabindex: '-1', 'aria-hidden': 'true' } );
			} );

		$( '.wc-item-reorder-nav' )
			.closest( 'table' )
			.trigger( 'updateMoveButtons' );

		$( '.submit button' ).on( 'click', function () {
			if (
				$( 'select#woocommerce_allowed_countries' ).val() ===
					'specific' &&
				! $( '[name="woocommerce_specific_allowed_countries[]"]' ).val()
			) {
				if (
					window.confirm(
						woocommerce_settings_params.i18n_no_specific_countries_selected
					)
				) {
					return true;
				}
				return false;
			}
		} );

		$( '#settings-other-payment-methods' ).on( 'click', function ( e ) {
			if (
				typeof window.wcTracks.recordEvent === 'undefined' &&
				typeof window.wc.tracks.recordEvent === 'undefined'
			) {
				return;
			}

			var recordEvent =
				window.wc.tracks.recordEvent || window.wcTracks.recordEvent;

			var payment_methods = $.map(
				$(
					'td.wc_payment_gateways_wrapper tbody tr[data-gateway_id] '
				),
				function ( tr ) {
					return $( tr ).attr( 'data-gateway_id' );
				}
			);

			recordEvent( 'settings_payments_recommendations_other_options', {
				available_payment_methods: payment_methods,
			} );
		} );

		$( '.woocommerce-save-button.components-button' ).on( 'click', function ( e ) {
			if ( ! $( this ).attr( 'disabled' ) ) {
				$( this ).addClass( 'is-busy' );
			}
		} );
	} );
} )( jQuery, woocommerce_settings_params, wp );

[ 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