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
This commit is contained in:
parent
5a2b79d914
commit
854f7138f9
|
@ -349,7 +349,7 @@ jQuery(document).ready( function($) {
|
||||||
return false;
|
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();
|
var t = $(this), c = t.is(':checked'), id = t.val();
|
||||||
if ( id && t.parents('#taxonomy-'+taxonomy).length )
|
if ( id && t.parents('#taxonomy-'+taxonomy).length )
|
||||||
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
||||||
|
|
Loading…
Reference in New Issue