mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Modify a few jQuery selectors to prevent overflows and lagging. props SergeyBiryukov. fixes #21106. merges [21737] to the 3.4 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/3.4@21738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
096fa75aec
commit
5351cd2913
@ -342,7 +342,7 @@ jQuery(document).ready( function($) {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#' + taxonomy + 'checklist li.popular-category :checkbox, #' + taxonomy + 'checklist-pop :checkbox').live( 'click', function(){
|
||||
$('#' + taxonomy + 'checklist li.popular-category input[type="checkbox"], #' + taxonomy + 'checklist-pop input[type="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).prop( 'checked', c );
|
||||
|
@ -397,7 +397,7 @@ wpList = {
|
||||
return list.wpList.add(this);
|
||||
});
|
||||
|
||||
$el.delegate( '[class^="add:' + list.id + ':"]:not(form)', 'click', function(){
|
||||
$el.delegate( 'a[class^="add:' + list.id + ':"], input[class^="add:' + list.id + ':"]', 'click', function(){
|
||||
return list.wpList.add(this);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user