Press Enter to save in Quick Edit, props aaron_guitar, fixes #8061
git-svn-id: https://develop.svn.wordpress.org/trunk@9566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2f0df43916
commit
f06a9763c3
@ -20,6 +20,7 @@ inlineEditPost = {
|
||||
|
||||
$('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); });
|
||||
$('a.save', qeRow).click(function() { return inlineEditPost.save(this); });
|
||||
$('input, select', qeRow).keydown(function(e) { if(e.which == 13) return inlineEditPost.save(this); });
|
||||
|
||||
$('a.cancel', bulkRow).click(function() { return inlineEditPost.revert(); });
|
||||
$('a.save', bulkRow).click(function() { return inlineEditPost.saveBulk(); });
|
||||
|
@ -17,6 +17,7 @@ inlineEditTax = {
|
||||
|
||||
$('a.cancel', row).click(function() { return inlineEditTax.revert(); });
|
||||
$('a.save', row).click(function() { return inlineEditTax.save(this); });
|
||||
$('input, select', row).keydown(function(e) { if(e.which == 13) return inlineEditTax.save(this); });
|
||||
|
||||
// add events
|
||||
// t.rows.dblclick(function() { inlineEditTax.toggle(this); });
|
||||
|
@ -263,12 +263,12 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' );
|
||||
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081031' );
|
||||
$scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081107' );
|
||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.')
|
||||
) );
|
||||
|
||||
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081031' );
|
||||
$scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081107' );
|
||||
$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.')
|
||||
) );
|
||||
|
Loading…
Reference in New Issue
Block a user