Can't control output, but can only allow 1 to be selected. Closes #1042.

This commit is contained in:
Mike Jolley 2012-06-10 09:03:20 +01:00
parent 8a8025d201
commit 91e0ade791
2 changed files with 13 additions and 6 deletions

View File

@ -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') );
}

View File

@ -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');
});
});