Scroll up to the top when bulk editing so the form is completely visible. Fixes #17208 props greuben.
git-svn-id: https://develop.svn.wordpress.org/trunk@18146 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
53d2062a4f
commit
e5812cf223
@ -119,6 +119,7 @@ inlineEditPost = {
|
||||
tax = 'post_tag';
|
||||
$('tr.inline-editor textarea[name="tags_input"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
||||
}
|
||||
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
||||
},
|
||||
|
||||
edit : function(id) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -385,7 +385,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407' );
|
||||
$scripts->add_data( 'theme-preview', 'group', 1 );
|
||||
|
||||
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20110524' );
|
||||
$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20110605' );
|
||||
$scripts->add_data( 'inline-edit-post', 'group', 1 );
|
||||
$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.'),
|
||||
|
Loading…
Reference in New Issue
Block a user