Switch live() binding to a single selector. Props mdawaffe. fixes #12369

git-svn-id: https://develop.svn.wordpress.org/trunk@13410 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-25 21:46:04 +00:00
parent 81e711cf87
commit ab099ded21
2 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ jQuery(document).ready( function($) {
return false;
});
$('#' + taxonomy + 'checklist').children('li.popular-category').add( $('#' + taxonomy + 'checklist-pop').children() ).find(':checkbox').live( 'click', function(){
$('#' + taxonomy + 'checklist li.popular-category :checkbox, #' + taxonomy + 'checklist-pop :checkbox').live( 'click', 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).attr( 'checked', c );

File diff suppressed because one or more lines are too long