WordPress.org

Make WordPress Core

Changeset 9566


Ignore:
Timestamp:
11/08/08 06:54:42 (6 years ago)
Author:
azaozz
Message:

Press Enter to save in Quick Edit, props aaron_guitar, fixes #8061

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/inline-edit-post.js

    r9519 r9566  
    2121        $('a.cancel', qeRow).click(function() { return inlineEditPost.revert(); }); 
    2222        $('a.save', qeRow).click(function() { return inlineEditPost.save(this); }); 
     23        $('input, select', qeRow).keydown(function(e) { if(e.which == 13) return inlineEditPost.save(this); }); 
    2324 
    2425        $('a.cancel', bulkRow).click(function() { return inlineEditPost.revert(); }); 
  • trunk/wp-admin/js/inline-edit-tax.js

    r9551 r9566  
    1818        $('a.cancel', row).click(function() { return inlineEditTax.revert(); }); 
    1919        $('a.save', row).click(function() { return inlineEditTax.save(this); }); 
     20        $('input, select', row).keydown(function(e) { if(e.which == 13) return inlineEditTax.save(this); }); 
    2021 
    2122        // add events 
  • trunk/wp-includes/script-loader.php

    r9564 r9566  
    264264        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' ); 
    265265 
    266         $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081031' ); 
     266        $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081107' ); 
    267267        $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array( 
    268268            'error' => __('Error while saving the changes.') 
    269269        ) ); 
    270270 
    271         $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081031' ); 
     271        $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081107' ); 
    272272        $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array( 
    273273            'error' => __('Error while saving the changes.') 
Note: See TracChangeset for help on using the changeset viewer.