X7ROOT File Manager
Current Path:
/home/notabjze/pyirates.net/wp-content/plugins/woocommerce/assets/js/admin
home
/
notabjze
/
pyirates.net
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
admin
/
ðŸ“
..
📄
api-keys.js
(3.89 KB)
📄
api-keys.min.js
(2.23 KB)
📄
backbone-modal.js
(4.35 KB)
📄
backbone-modal.min.js
(2.77 KB)
📄
marketplace-suggestions.js
(15.59 KB)
📄
marketplace-suggestions.min.js
(6.29 KB)
📄
meta-boxes-coupon.js
(2.91 KB)
📄
meta-boxes-coupon.min.js
(1.56 KB)
📄
meta-boxes-order.js
(50.05 KB)
📄
meta-boxes-order.min.js
(31.08 KB)
📄
meta-boxes-product-variation.js
(40.54 KB)
📄
meta-boxes-product-variation.min.js
(21.73 KB)
📄
meta-boxes-product.js
(33.75 KB)
📄
meta-boxes-product.min.js
(17.73 KB)
📄
meta-boxes.js
(4.88 KB)
📄
meta-boxes.min.js
(2.97 KB)
📄
network-orders.js
(2.34 KB)
📄
network-orders.min.js
(1.25 KB)
📄
order-attribution-admin.js
(1.16 KB)
📄
order-attribution-admin.min.js
(730 B)
📄
product-editor.js
(405 B)
📄
product-editor.min.js
(240 B)
📄
product-ordering.js
(2.49 KB)
📄
product-ordering.min.js
(1.61 KB)
📄
quick-edit.js
(6.78 KB)
📄
quick-edit.min.js
(4.42 KB)
📄
reports.js
(6.31 KB)
📄
reports.min.js
(3.17 KB)
📄
settings-views-html-settings-tax.js
(12.08 KB)
📄
settings-views-html-settings-tax.min.js
(6.08 KB)
📄
settings.js
(9.23 KB)
📄
settings.min.js
(5.27 KB)
📄
system-status.js
(5.29 KB)
📄
system-status.min.js
(3.06 KB)
📄
term-ordering.js
(4.57 KB)
📄
term-ordering.min.js
(2.47 KB)
📄
users.js
(3.78 KB)
📄
users.min.js
(1.87 KB)
📄
wc-clipboard.js
(869 B)
📄
wc-clipboard.min.js
(336 B)
📄
wc-enhanced-select.js
(13.58 KB)
📄
wc-enhanced-select.min.js
(7.71 KB)
📄
wc-orders.js
(1.98 KB)
📄
wc-orders.min.js
(1.17 KB)
📄
wc-product-export.js
(3.63 KB)
📄
wc-product-export.min.js
(2.02 KB)
📄
wc-product-import.js
(2.92 KB)
📄
wc-product-import.min.js
(1.7 KB)
📄
wc-setup.js
(10.05 KB)
📄
wc-setup.min.js
(6.35 KB)
📄
wc-shipping-classes.js
(6.42 KB)
📄
wc-shipping-classes.min.js
(3.41 KB)
📄
wc-shipping-zone-methods.js
(27.04 KB)
📄
wc-shipping-zone-methods.min.js
(14.44 KB)
📄
wc-shipping-zones.js
(8.97 KB)
📄
wc-shipping-zones.min.js
(4.71 KB)
📄
wc-status-widget.js
(823 B)
📄
wc-status-widget.min.js
(584 B)
📄
woocommerce_admin.js
(20.53 KB)
📄
woocommerce_admin.min.js
(11.19 KB)
Editing: 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(); });
Upload File
Create Folder