Ticket #21106: 21106.2.patch
File 21106.2.patch, 1.8 KB (added by , 12 years ago) |
---|
-
wp-admin/js/post.js
342 342 return false; 343 343 }); 344 344 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() { 346 346 var t = $(this), c = t.is(':checked'), id = t.val(); 347 347 if ( id && t.parents('#taxonomy-'+taxonomy).length ) 348 348 $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c ); -
wp-includes/js/wp-lists.js
393 393 var list = this, 394 394 $el = $(el || document); 395 395 396 $el. delegate( 'form[class^="add:' + list.id + ':"]', 'submit', function(){396 $el.find('form').on( 'submit', '[class^="add:' + list.id + ':"]', function() { 397 397 return list.wpList.add(this); 398 398 }); 399 399 400 $el. delegate( '[class^="add:' + list.id + ':"]:not(form)', 'click', function(){400 $el.find('input').on( 'click', '[class^="add:' + list.id + ':"]', function() { 401 401 return list.wpList.add(this); 402 402 }); 403 403 404 $el. delegate( '[class^="delete:' + list.id + ':"]', 'click', function(){404 $el.find('a, input').on( 'click', '[class^="delete:' + list.id + ':"]', function() { 405 405 return list.wpList.del(this); 406 406 }); 407 407 408 $el. delegate( '[class^="dim:' + list.id + ':"]', 'click', function(){408 $el.find('a').on( 'click', '[class^="dim:' + list.id + ':"]', function() { 409 409 return list.wpList.dim(this); 410 410 }); 411 411 },