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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-25 21:46:04 +00:00
parent 2372671879
commit b79fc36dbb
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