Make WordPress Core

Changeset 21737


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

Modify a few jQuery selectors to prevent overflows and lagging. Todo, rewrite wp-lists and improve all of these selectors.

props SergeyBiryukov. fixes #21106 for trunk. see #21152.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r21659 r21737  
    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 )
  • trunk/wp-includes/js/wp-lists.js

    r21592 r21737  
    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.