Make WordPress Core

Changeset 23587


Ignore:
Timestamp:
03/03/2013 12:06:09 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Remove unused function. fixes #23671.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r23536 r23587  
    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('-');
     
    308308        });
    309309        $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); });
    310 
    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         };
    319310
    320311        catAddBefore = function( s ) {
Note: See TracChangeset for help on using the changeset viewer.