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:
Ryan Boren
2008-09-10 22:47:03 +00:00
parent d709b8d166
commit 88e581b529
10 changed files with 657 additions and 84 deletions
+2 -2
View File
@@ -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; }