Ticket #22975: 22975.taxonomy-checklist.3b.patch
File 22975.taxonomy-checklist.3b.patch, 1.0 KB (added by , 10 years ago) |
---|
-
wp-admin/js/post.js
371 371 372 372 $('#new' + taxonomy).keypress( function(event){ 373 373 if( 13 === event.keyCode ) { 374 375 374 event.preventDefault(); 375 $('#' + taxonomy + '-add-submit').click(); 376 376 } 377 377 }); 378 378 $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); }); … … 409 409 return false; 410 410 }); 411 411 412 $('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on( 'click', ' input[type="checkbox"]', function() {412 $('#' + taxonomy + 'checklist, #' + taxonomy + 'checklist-pop').on( 'click', 'li.popular-category > label input[type="checkbox"]', function() { 413 413 var t = $(this), c = t.is(':checked'), id = t.val(); 414 414 if ( id && t.parents('#taxonomy-'+taxonomy).length ) 415 415 $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );