Changeset 23587
- Timestamp:
- 03/03/2013 12:06:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post.js
r23536 r23587 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('-'); … … 308 308 }); 309 309 $('#' + 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 };319 310 320 311 catAddBefore = function( s ) {
Note: See TracChangeset
for help on using the changeset viewer.