Ticket #22975: 22975.replace-live.patch
File 22975.replace-live.patch, 2.1 KB (added by , 10 years ago) |
---|
-
wp-admin/js/inline-edit-tax.js
8 8 t.type = $('#the-list').attr('data-wp-lists').substr(5); 9 9 t.what = '#'+t.type+'-'; 10 10 11 $(' .editinline').live('click', function(){11 $('#the-list').on('click', 'a.editinline', function(){ 12 12 inlineEditTax.edit(this); 13 13 return false; 14 14 }); -
wp-admin/js/tags.js
1 1 jQuery(document).ready(function($) { 2 2 3 $(' .delete-tag').live('click', function(e){3 $('#the-list').on('click', '.delete-tag', function(e){ 4 4 var t = $(this), tr = t.parents('tr'), r = true, data; 5 5 if ( 'undefined' != showNotice ) 6 6 r = showNotice.warn(); -
wp-admin/js/inline-edit-post.js
42 42 }); 43 43 44 44 // add events 45 $(' a.editinline').live('click', function(){45 $('#the-list').on('click', 'a.editinline', function(){ 46 46 inlineEditPost.edit(this); 47 47 return false; 48 48 }); -
wp-admin/js/post.js
349 349 return false; 350 350 }); 351 351 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() { 353 console.log('fired'); 353 354 var t = $(this), c = t.is(':checked'), id = t.val(); 354 355 if ( id && t.parents('#taxonomy-'+taxonomy).length ) 355 356 $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );