]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/inline-edit-tax.js
WordPress 4.5
[autoinstalls/wordpress.git] / wp-admin / js / inline-edit-tax.js
index b1090de44b1860fb56b94b6e44a9348e09ca81ed..17095afe9cb1cedb870500a35ac7876f7ec808aa 100644 (file)
@@ -121,8 +121,8 @@ inlineEditTax = {
                                                $( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() );
 
                                                row.hide().fadeIn( 400, function() {
                                                $( '#parent' ).find( 'option[value=' + option_value + ']' ).text( row.find( '.row-title' ).text() );
 
                                                row.hide().fadeIn( 400, function() {
-                                                       // Move focus back to the taxonomy title.
-                                                       row.find( '.row-title' ).focus();
+                                                       // Move focus back to the Quick Edit link.
+                                                       row.find( '.editinline' ).focus();
                                                        wp.a11y.speak( inlineEditL10n.saved );
                                                });
 
                                                        wp.a11y.speak( inlineEditL10n.saved );
                                                });
 
@@ -148,8 +148,8 @@ inlineEditTax = {
                        $( 'table.widefat .spinner' ).removeClass( 'is-active' );
                        $('#'+id).siblings('tr.hidden').addBack().remove();
                        id = id.substr( id.lastIndexOf('-') + 1 );
                        $( 'table.widefat .spinner' ).removeClass( 'is-active' );
                        $('#'+id).siblings('tr.hidden').addBack().remove();
                        id = id.substr( id.lastIndexOf('-') + 1 );
-                       // Show the taxonomy listing and move focus back to the taxonomy title.
-                       $( this.what + id ).show().find( '.row-title' ).focus();
+                       // Show the taxonomy row and move focus back to the Quick Edit link.
+                       $( this.what + id ).show().find( '.editinline' ).focus();
                }
        },
 
                }
        },