Make WordPress Core

Changeset 21738


Ignore:
Timestamp:
09/04/2012 08:28:52 PM (14 years ago)
Author:
nacin
Message:

Modify a few jQuery selectors to prevent overflows and lagging. props SergeyBiryukov. fixes #21106. merges [21737] to the 3.4 branch.

Location:
branches/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-admin/js/post.dev.js

    r20650 r21738  
    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 )
  • branches/3.4/wp-includes/js/wp-lists.dev.js

    r21717 r21738  
    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                });
Note: See TracChangeset for help on using the changeset viewer.