Changeset 9708
- Timestamp:
- 11/15/2008 07:07:59 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/js/common.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/common.js
r9633 r9708 201 201 } ); 202 202 203 $( 'thead :checkbox, tfoot :checkbox' ).click( function() { 204 $(this).parents( 'form:first' ).find( 'tbody:visible .check-column :checkbox' ).attr( 'checked', function() { 205 return $(this).attr( 'checked' ) ? '' : 'checked'; 206 }); 207 return false; 203 $( 'thead :checkbox, tfoot :checkbox' ).click( function(e) { 204 var c = $(this).attr('checked'); 205 206 $(this).parents( 'form:first' ).find( 'table .check-column :checkbox' ).attr( 'checked', function() { 207 if ( e.shiftKey ) 208 return $(this).attr( 'checked' ) ? '' : 'checked'; 209 else if (c) 210 return 'checked'; 211 212 return ''; 213 }); 208 214 }); 209 215 });
Note: See TracChangeset
for help on using the changeset viewer.