Make WordPress Core

Ticket #22975: 22975.taxonomy-checklist.3b.patch

File 22975.taxonomy-checklist.3b.patch, 1.0 KB (added by ocean90, 10 years ago)
  • wp-admin/js/post.js

     
    371371
    372372                $('#new' + taxonomy).keypress( function(event){
    373373                        if( 13 === event.keyCode ) {
    374                                  event.preventDefault();
    375                                  $('#' + taxonomy + '-add-submit').click();
     374                                event.preventDefault();
     375                                $('#' + taxonomy + '-add-submit').click();
    376376                        }
    377377                });
    378378                $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); });
     
    409409                        return false;
    410410                });
    411411
    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() {
    413413                        var t = $(this), c = t.is(':checked'), id = t.val();
    414414                        if ( id && t.parents('#taxonomy-'+taxonomy).length )
    415415                                $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );