Make WordPress Core

Ticket #21106: 21106.2.patch

File 21106.2.patch, 1.8 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                $(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('input').on( 'click', '[class^="add:' + list.id + ':"]', function() {
    401401                        return list.wpList.add(this);
    402402                });
    403403
    404                 $el.delegate( '[class^="delete:' + list.id + ':"]', 'click', function(){
     404                $el.find('a, input').on( 'click', '[class^="delete:' + list.id + ':"]', function() {
    405405                        return list.wpList.del(this);
    406406                });
    407407
    408                 $el.delegate( '[class^="dim:' + list.id + ':"]', 'click', function(){
     408                $el.find('a').on( 'click', '[class^="dim:' + list.id + ':"]', function() {
    409409                        return list.wpList.dim(this);
    410410                });
    411411        },