Skip to content

Commit 5351cd2

Browse files
committed
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
1 parent 096fa75 commit 5351cd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wp-admin/js/post.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ jQuery(document).ready( function($) {
342342
return false;
343343
});
344344

345-
$('#' + taxonomy + 'checklist li.popular-category :checkbox, #' + taxonomy + 'checklist-pop :checkbox').live( 'click', function(){
345+
$('#' + taxonomy + 'checklist li.popular-category input[type="checkbox"], #' + taxonomy + 'checklist-pop input[type="checkbox"]').live( 'click', function(){
346346
var t = $(this), c = t.is(':checked'), id = t.val();
347347
if ( id && t.parents('#taxonomy-'+taxonomy).length )
348348
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );

wp-includes/js/wp-lists.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ wpList = {
397397
return list.wpList.add(this);
398398
});
399399

400-
$el.delegate( '[class^="add:' + list.id + ':"]:not(form)', 'click', function(){
400+
$el.delegate( 'a[class^="add:' + list.id + ':"], input[class^="add:' + list.id + ':"]', 'click', function(){
401401
return list.wpList.add(this);
402402
});
403403

0 commit comments

Comments
 (0)