Make WordPress Core

Ticket #21106: 21106.4.patch

File 21106.4.patch, 1.8 KB (added by nacin, 13 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                $(document).on( 'click', '#' + taxonomy + 'checklist li.popular-category input[type="checkbox"], #' + taxonomy + 'checklist-pop input[type="checkbox"]', 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

     
    393393                var list = this,
    394394                        $el = $(el || document);
    395395
    396                 $el.delegate( 'form[class^="add:' + list.id + ':"]', 'submit', function(){
     396                $el.find('form').on( 'submit', '[class^="add:' + list.id + ':"]', function() {
    397397                        return list.wpList.add(this);
    398398                });
    399399
    400                 $el.delegate( '[class^="add:' + list.id + ':"]:not(form)', 'click', function(){
     400                $el.find('a, input').on( 'click', '[class^="add:' + list.id + ':"]', function() {
    401401                        return list.wpList.add(this);
    402                 });
    403 
    404                 $el.delegate( '[class^="delete:' + list.id + ':"]', 'click', function(){
     402                }).on( 'click', '[class^="delete:' + list.id + ':"]', function() {
    405403                        return list.wpList.del(this);
    406                 });
    407 
    408                 $el.delegate( '[class^="dim:' + list.id + ':"]', 'click', function(){
     404                }).on( 'click', '[class^="dim:' + list.id + ':"]', function() {
    409405                        return list.wpList.dim(this);
    410406                });
    411407        },