golden hour
/var/www/html/wp-content/plugins/woocommerce/assets/js/admin
⬆️ Go Up
Upload
File/Folder
Size
Actions
api-keys.js
3.89 KB
Del
OK
api-keys.min.js
2.21 KB
Del
OK
backbone-modal.js
3.46 KB
Del
OK
backbone-modal.min.js
2.16 KB
Del
OK
marketplace-suggestions.js
15.56 KB
Del
OK
marketplace-suggestions.min.js
6.13 KB
Del
OK
meta-boxes-coupon.js
2.03 KB
Del
OK
meta-boxes-coupon.min.js
1.19 KB
Del
OK
meta-boxes-order.js
46.54 KB
Del
OK
meta-boxes-order.min.js
29.08 KB
Del
OK
meta-boxes-product-variation.js
32.99 KB
Del
OK
meta-boxes-product-variation.min.js
18.34 KB
Del
OK
meta-boxes-product.js
20.82 KB
Del
OK
meta-boxes-product.min.js
12.36 KB
Del
OK
meta-boxes.js
2.33 KB
Del
OK
meta-boxes.min.js
1.56 KB
Del
OK
network-orders.js
2.34 KB
Del
OK
network-orders.min.js
1.24 KB
Del
OK
product-ordering.js
2.26 KB
Del
OK
product-ordering.min.js
1.48 KB
Del
OK
quick-edit.js
6.76 KB
Del
OK
quick-edit.min.js
4.39 KB
Del
OK
reports.js
6.31 KB
Del
OK
reports.min.js
3.17 KB
Del
OK
settings-views-html-settings-tax.js
11.93 KB
Del
OK
settings-views-html-settings-tax.min.js
5.98 KB
Del
OK
settings.js
5.46 KB
Del
OK
settings.min.js
3.61 KB
Del
OK
system-status.js
3.55 KB
Del
OK
system-status.min.js
1.97 KB
Del
OK
term-ordering.js
4.18 KB
Del
OK
term-ordering.min.js
2.2 KB
Del
OK
users.js
3.78 KB
Del
OK
users.min.js
1.87 KB
Del
OK
wc-clipboard.js
869 B
Del
OK
wc-clipboard.min.js
336 B
Del
OK
wc-enhanced-select.js
10.41 KB
Del
OK
wc-enhanced-select.min.js
5.92 KB
Del
OK
wc-orders.js
1.9 KB
Del
OK
wc-orders.min.js
1.11 KB
Del
OK
wc-product-export.js
3.63 KB
Del
OK
wc-product-export.min.js
2.02 KB
Del
OK
wc-product-import.js
2.58 KB
Del
OK
wc-product-import.min.js
1.45 KB
Del
OK
wc-setup.js
10.05 KB
Del
OK
wc-setup.min.js
6.32 KB
Del
OK
wc-shipping-classes.js
7.92 KB
Del
OK
wc-shipping-classes.min.js
4.42 KB
Del
OK
wc-shipping-zone-methods.js
15.15 KB
Del
OK
wc-shipping-zone-methods.min.js
8.49 KB
Del
OK
wc-shipping-zones.js
8.99 KB
Del
OK
wc-shipping-zones.min.js
4.76 KB
Del
OK
wc-status-widget.js
737 B
Del
OK
wc-status-widget.min.js
511 B
Del
OK
woocommerce_admin.js
13.64 KB
Del
OK
woocommerce_admin.min.js
8.12 KB
Del
OK
Edit: network-orders.js
/*global woocommerce_network_orders */ (function( $, _, undefined ) { if ( 'undefined' === typeof woocommerce_network_orders ) { return; } var orders = [], promises = [], // Track completion (pass or fail) of ajax requests. deferred = [], // Tracks the ajax deferreds. $tbody = $( document.getElementById( 'network-orders-tbody' ) ), template = _.template( $( document.getElementById( 'network-orders-row-template') ).text() ), $loadingIndicator = $( document.getElementById( 'woocommerce-network-order-table-loading' ) ), $orderTable = $( document.getElementById( 'woocommerce-network-order-table' ) ), $noneFound = $( document.getElementById( 'woocommerce-network-orders-no-orders' ) ); // No sites, so bail. if ( ! woocommerce_network_orders.sites.length ) { $loadingIndicator.removeClass( 'is-active' ); $orderTable.removeClass( 'is-active' ); $noneFound.addClass( 'is-active' ); return; } $.each( woocommerce_network_orders.sites, function( index, value ) { promises[ index ] = $.Deferred(); deferred.push( $.ajax( { url : woocommerce_network_orders.order_endpoint, data: { _wpnonce: woocommerce_network_orders.nonce, network_orders: true, blog_id: value }, type: 'GET' } ).success(function( response ) { var orderindex; for ( orderindex in response ) { orders.push( response[ orderindex ] ); } promises[ index ].resolve(); }).fail(function (){ promises[ index ].resolve(); }) ); } ); if ( promises.length > 0 ) { $.when.apply( $, promises ).done( function() { var orderindex, currentOrder; // Sort orders, newest first orders.sort(function( a, b ) { var adate, bdate; adate = Date.parse( a.date_created_gmt ); bdate = Date.parse( b.date_created_gmt ); if ( adate === bdate ) { return 0; } if ( adate < bdate ) { return 1; } else { return -1; } }); if ( orders.length > 0 ) { for ( orderindex in orders ) { currentOrder = orders[ orderindex ]; $tbody.append( template( currentOrder ) ); } $noneFound.removeClass( 'is-active' ); $loadingIndicator.removeClass( 'is-active' ); $orderTable.addClass( 'is-active' ); } else { $noneFound.addClass( 'is-active' ); $loadingIndicator.removeClass( 'is-active' ); $orderTable.removeClass( 'is-active' ); } } ); } })( jQuery, _ );
Save