Make WordPress Core

Ticket #23671: 23671.patch

File 23671.patch, 1.0 KB (added by SergeyBiryukov, 13 years ago)
  • wp-admin/js/post.js

     
    272272
    273273        // categories
    274274        $('.categorydiv').each( function(){
    275                 var this_id = $(this).attr('id'), noSyncChecks = false, syncChecks, catAddAfter, taxonomyParts, taxonomy, settingName;
     275                var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomyParts, taxonomy, settingName;
    276276
    277277                taxonomyParts = this_id.split('-');
    278278                taxonomyParts.shift();
     
    308308                });
    309309                $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); });
    310310
    311                 syncChecks = function() {
    312                         if ( noSyncChecks )
    313                                 return;
    314                         noSyncChecks = true;
    315                         var th = jQuery(this), c = th.is(':checked'), id = th.val().toString();
    316                         $('#in-' + taxonomy + '-' + id + ', #in-' + taxonomy + '-category-' + id).prop( 'checked', c );
    317                         noSyncChecks = false;
    318                 };
    319 
    320311                catAddBefore = function( s ) {
    321312                        if ( !$('#new'+taxonomy).val() )
    322313                                return false;