From 854f7138f99b32025a36d356e80eab5aedbc21c2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 28 Feb 2013 18:03:18 +0000 Subject: [PATCH] Imporove a selector targeting taxonomy meta boxes. props SergeyBiryukoc. see #22975. git-svn-id: https://develop.svn.wordpress.org/trunk@23517 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js index b6507abe7c..4f5fefb4e3 100644 --- a/wp-admin/js/post.js +++ b/wp-admin/js/post.js @@ -349,7 +349,7 @@ jQuery(document).ready( function($) { return false; }); - $('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on( 'click', 'li.popular-category input[type="checkbox"], input[type="checkbox"]', function() { + $('#' + taxonomy + 'checklist li.popular-category, #' + taxonomy + 'checklist-pop').on( 'click', 'input[type="checkbox"]', function() { var t = $(this), c = t.is(':checked'), id = t.val(); if ( id && t.parents('#taxonomy-'+taxonomy).length ) $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );