Can't control output, but can only allow 1 to be selected. Closes #1042.
This commit is contained in:
parent
8a8025d201
commit
91e0ade791
|
@ -581,9 +581,10 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
|
|||
<?php
|
||||
}
|
||||
|
||||
function woocommerce_admin_product_quick_edit_scripts() {
|
||||
global $woocommerce;
|
||||
function woocommerce_admin_product_quick_edit_scripts( $hook ) {
|
||||
global $woocommerce, $post_type;
|
||||
|
||||
if ( $hook == 'edit.php' && $post_type == 'product' )
|
||||
wp_enqueue_script( 'woocommerce_quick-edit', $woocommerce->plugin_url() . '/assets/js/admin/quick-edit.js', array('jquery') );
|
||||
}
|
||||
|
||||
|
|
|
@ -102,4 +102,10 @@ jQuery(document).ready(function(){
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
jQuery('.product_shipping_class-checklist input').change(function(){
|
||||
|
||||
jQuery(this).closest('li').siblings().find('input:checked').removeAttr('checked');
|
||||
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue