gruene-seele/dev/dhl-for-woocommerce/assets/js/pr-dhl-dp-orderlist.js
Kevin Adametz 0f641ef33a Housekeeping: offene Dev-Dateien eingecheckt + Sidebar „Bestellungen"→„Versand"
- Sidebar-Menü „Bestellungen" in „Versand" umbenannt (layout-sidenav), sonst nur
  Blade-Formatierung.
- Entwicklungspläne in ISO-Datumsformat umbenannt (entwicklungsplan-aktualisiert-*).
- dev/dhl-for-woocommerce/ (DHL-Plugin) + dev/partnercenter-api.zip + PastedGraphic
  hinzugefügt.
- .claude/ bewusst NICHT eingecheckt (lokale Claude-Code-Konfiguration).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-28 12:04:41 +00:00

38 lines
No EOL
896 B
JavaScript

( function( $ ) {
var wc_dhl_dp_order_lists = {
// init Class
init: function() {
$( '#posts-filter' )
.on( 'change', '#bulk-action-selector-top', this.toggle_awb_copy_count );
$( '#wc-orders-filter' )
.on( 'change', '#bulk-action-selector-top', this.toggle_awb_copy_count );
this.update();
},
update: function () {
$( '.dhl-awb-filter-container' ).hide();
},
toggle_awb_copy_count: function( evt ){
evt.preventDefault();
var value = jQuery( this ).val();
var post_form = jQuery( this ).parents();
post_form.find('.tablenav.bottom .dhl-awb-filter-container').remove();
if( 'pr_dhl_create_orders' == value ){
post_form.find( '.dhl-awb-filter-container' ).show();
}else{
post_form.find( '.dhl-awb-filter-container' ).hide();
}
}
};
wc_dhl_dp_order_lists.init();
} )( jQuery );