Make WordPress Core

Changeset 23444


Ignore:
Timestamp:
02/16/2013 05:46:12 PM (10 years ago)
Author:
nacin
Message:

Stop using jQuery.live(). props ocean90. see #22975.

Location:
trunk/wp-admin/js
Files:
4 edited

Legend:

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

    r23354 r23444  
    4343
    4444        // add events
    45         $('a.editinline').live('click', function(){
     45        $('#the-list').on('click', 'a.editinline', function(){
    4646            inlineEditPost.edit(this);
    4747            return false;
  • trunk/wp-admin/js/inline-edit-tax.js

    r22396 r23444  
    99        t.what = '#'+t.type+'-';
    1010
    11         $('.editinline').live('click', function(){
     11        $('#the-list').on('click', 'a.editinline', function(){
    1212            inlineEditTax.edit(this);
    1313            return false;
  • trunk/wp-admin/js/post.js

    r23338 r23444  
    350350        });
    351351
    352         $('#' + taxonomy + 'checklist li.popular-category input[type="checkbox"], #' + taxonomy + 'checklist-pop input[type="checkbox"]').live( 'click', function(){
     352        $('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on( 'click', 'li.popular-category input[type="checkbox"], input[type="checkbox"]', function() {
    353353            var t = $(this), c = t.is(':checked'), id = t.val();
    354354            if ( id && t.parents('#taxonomy-'+taxonomy).length )
  • trunk/wp-admin/js/tags.js

    r21592 r23444  
    11jQuery(document).ready(function($) {
    22
    3     $('.delete-tag').live('click', function(e){
     3    $('#the-list').on('click', '.delete-tag', function(e){
    44        var t = $(this), tr = t.parents('tr'), r = true, data;
    55        if ( 'undefined' != showNotice )
Note: See TracChangeset for help on using the changeset viewer.