Quick Edit: fix the Tags auto-suggest tooltip visibility.

Be sure to hide the `jquery.suggest` Tags textarea tooltip also when using the keyboard to Save/Cancel.

Props rommelxcastro for the initial patch.
Fixes #32580.
Built from https://develop.svn.wordpress.org/trunk@34064


git-svn-id: http://core.svn.wordpress.org/trunk@34032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2015-09-11 23:34:25 +00:00
parent e1ccdf760e
commit 5f5ea8c3e2
3 changed files with 8 additions and 5 deletions

View File

@ -268,6 +268,7 @@ inlineEditPost = {
$.post( ajaxurl, params,
function(r) {
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
$( '.ac_results' ).hide();
if (r) {
if ( -1 !== r.indexOf( '<tr' ) ) {
@ -287,13 +288,15 @@ inlineEditPost = {
},
revert : function(){
var id = $('table.widefat tr.inline-editor').attr('id');
var $tableWideFat = $( '.widefat' ),
id = $( '.inline-editor', $tableWideFat ).attr( 'id' );
if ( id ) {
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
$( '.spinner', $tableWideFat ).removeClass( 'is-active' );
$( '.ac_results' ).hide();
if ( 'bulk-edit' === id ) {
$('table.widefat #bulk-edit').removeClass('inline-editor').hide().siblings('tr.hidden').remove();
$( '#bulk-edit', $tableWideFat ).removeClass( 'inline-editor' ).hide().siblings( '.hidden' ).remove();
$('#bulk-titles').empty();
$('#inlineedit').append( $('#bulk-edit') );
} else {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34062';
$wp_version = '4.4-alpha-34064';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.