Merge pull request #857 from GeertDD/fix_metabox_toggle

Fix metabox toggle
This commit is contained in:
Mike Jolley 2012-03-20 11:40:45 -07:00
commit 7087f92ff1
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ jQuery( function($){
// Open/close
jQuery('.wc-metaboxes-wrapper').on('click', '.wc-metabox h3', function(event){
// If the user clicks on some form input inside the h3, like a select list (for variations), the box should not be toggled
if ($(event.target).is(':input')) return;
if ($(event.target).filter(':input, option').length) return;
jQuery(this).next('.wc-metabox-content').toggle();
});