mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Inline editing. First cut. Props Aaron Harp. see #6815
git-svn-id: https://develop.svn.wordpress.org/trunk@8857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
function checkAll(jQ) { // use attr( checked, fn )
|
||||
jQuery(jQ).find( 'tbody:visible :checkbox' ).attr( 'checked', function() {
|
||||
jQuery(jQ).find( 'tbody:visible .check-column :checkbox' ).attr( 'checked', function() {
|
||||
return jQuery(this).attr( 'checked' ) ? '' : 'checked';
|
||||
} );
|
||||
}
|
||||
|
||||
jQuery( function($) {
|
||||
var lastClicked = false;
|
||||
$( 'tbody :checkbox' ).click( function(e) {
|
||||
$( 'tbody .check-column :checkbox' ).click( function(e) {
|
||||
if ( 'undefined' == e.shiftKey ) { return true; }
|
||||
if ( e.shiftKey ) {
|
||||
if ( !lastClicked ) { return true; }
|
||||
|
||||
Reference in New Issue
Block a user