/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/woocommerce/legacy/js/admin
NameSizeModeActions
api-keys.js39860644editdlrm
backbone-modal.js35430644editdlrm
marketplace-suggestions.js159650644editdlrm
meta-boxes-coupon.js20750644editdlrm
meta-boxes-order.js479630644editdlrm
meta-boxes-product-variation.js343290644editdlrm
meta-boxes-product.js213190644editdlrm
meta-boxes.js23870644editdlrm
network-orders.js23940644editdlrm
product-ordering.js23120644editdlrm
quick-edit.js69420644editdlrm
reports.js64610644editdlrm
settings-views-html-settings-tax.js122190644editdlrm
settings.js55930644editdlrm
system-status.js36360644editdlrm
term-ordering.js42800644editdlrm
users.js38750644editdlrm
wc-clipboard.js8690644editdlrm
wc-enhanced-select.js106620644editdlrm
wc-orders.js19490644editdlrm
wc-product-export.js37190644editdlrm
wc-product-import.js26400644editdlrm
wc-setup.js102900644editdlrm
wc-shipping-classes.js81120644editdlrm
wc-shipping-zone-methods.js155170644editdlrm
wc-shipping-zones.js92020644editdlrm
wc-status-widget.js7370644editdlrm
woocommerce_admin.js153310644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/woocommerce/legacy/js/admin/network-orders.js (2394B)
/*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, _ );