Make WordPress Core

Ticket #21106: 21106.5.patch

File 21106.5.patch, 1.2 KB (added by SergeyBiryukov, 12 years ago)
  • wp-admin/js/post.js

     
    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.js

     
    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