Ticket #23671: 23671.patch
| File 23671.patch, 1.0 KB (added by SergeyBiryukov, 4 months ago) |
|---|
-
wp-admin/js/post.js
272 272 273 273 // categories 274 274 $('.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; 276 276 277 277 taxonomyParts = this_id.split('-'); 278 278 taxonomyParts.shift(); … … 308 308 }); 309 309 $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); }); 310 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 };319 320 311 catAddBefore = function( s ) { 321 312 if ( !$('#new'+taxonomy).val() ) 322 313 return false;