/
home
/
suroeste
/
public_html
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
admin
/
/home/suroeste/public_html/wp-content/plugins/woocommerce/assets/js/admin
mkdir
upload
Name
Size
Mode
Actions
api-keys.js
3986
0644
edit
dl
rm
api-keys.min.js
2280
0644
edit
dl
rm
backbone-modal.js
4459
0644
edit
dl
rm
backbone-modal.min.js
2837
0644
edit
dl
rm
marketplace-suggestions.js
15965
0644
edit
dl
rm
marketplace-suggestions.min.js
6440
0644
edit
dl
rm
meta-boxes-coupon.js
2075
0644
edit
dl
rm
meta-boxes-coupon.min.js
1219
0644
edit
dl
rm
meta-boxes-order.js
50880
0644
edit
dl
rm
meta-boxes-order.min.js
31640
0644
edit
dl
rm
meta-boxes-product-variation.js
41515
0644
edit
dl
rm
meta-boxes-product-variation.min.js
22256
0644
edit
dl
rm
meta-boxes-product.js
34559
0644
edit
dl
rm
meta-boxes-product.min.js
18155
0644
edit
dl
rm
meta-boxes.js
4993
0644
edit
dl
rm
meta-boxes.min.js
3040
0644
edit
dl
rm
network-orders.js
2394
0644
edit
dl
rm
network-orders.min.js
1281
0644
edit
dl
rm
order-attribution-admin.js
1185
0644
edit
dl
rm
order-attribution-admin.min.js
730
0644
edit
dl
rm
product-editor.js
405
0644
edit
dl
rm
product-editor.min.js
240
0644
edit
dl
rm
product-ordering.js
2547
0644
edit
dl
rm
product-ordering.min.js
1653
0644
edit
dl
rm
quick-edit.js
6942
0644
edit
dl
rm
quick-edit.min.js
4530
0644
edit
dl
rm
reports.js
6461
0644
edit
dl
rm
reports.min.js
3251
0644
edit
dl
rm
settings-views-html-settings-tax.js
12372
0644
edit
dl
rm
settings-views-html-settings-tax.min.js
6226
0644
edit
dl
rm
settings.js
7056
0644
edit
dl
rm
settings.min.js
4419
0644
edit
dl
rm
system-status.js
5419
0644
edit
dl
rm
system-status.min.js
3138
0644
edit
dl
rm
term-ordering.js
4675
0644
edit
dl
rm
term-ordering.min.js
2532
0644
edit
dl
rm
users.js
3875
0644
edit
dl
rm
users.min.js
1915
0644
edit
dl
rm
wc-clipboard.js
869
0644
edit
dl
rm
wc-clipboard.min.js
336
0644
edit
dl
rm
wc-enhanced-select.js
13906
0644
edit
dl
rm
wc-enhanced-select.min.js
7892
0644
edit
dl
rm
wc-orders.js
2024
0644
edit
dl
rm
wc-orders.min.js
1195
0644
edit
dl
rm
wc-product-export.js
3719
0644
edit
dl
rm
wc-product-export.min.js
2066
0644
edit
dl
rm
wc-product-import.js
2995
0644
edit
dl
rm
wc-product-import.min.js
1742
0644
edit
dl
rm
wc-setup.js
10290
0644
edit
dl
rm
wc-setup.min.js
6502
0644
edit
dl
rm
wc-shipping-classes.js
6575
0644
edit
dl
rm
wc-shipping-classes.min.js
3494
0644
edit
dl
rm
wc-shipping-zone-methods.js
27688
0644
edit
dl
rm
wc-shipping-zone-methods.min.js
14785
0644
edit
dl
rm
wc-shipping-zones.js
9184
0644
edit
dl
rm
wc-shipping-zones.min.js
4824
0644
edit
dl
rm
wc-status-widget.js
823
0644
edit
dl
rm
wc-status-widget.min.js
584
0644
edit
dl
rm
woocommerce_admin.js
20206
0644
edit
dl
rm
woocommerce_admin.min.js
10941
0644
edit
dl
rm
Edit:
/home/suroeste/public_html/wp-content/plugins/woocommerce/assets/js/admin/settings.js
(7056B)
/* 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 );
Save
cmd:
run