mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@34064 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e5324c4c91
commit
bc8e3599e6
@ -268,6 +268,7 @@ inlineEditPost = {
|
|||||||
$.post( ajaxurl, params,
|
$.post( ajaxurl, params,
|
||||||
function(r) {
|
function(r) {
|
||||||
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
|
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
|
||||||
|
$( '.ac_results' ).hide();
|
||||||
|
|
||||||
if (r) {
|
if (r) {
|
||||||
if ( -1 !== r.indexOf( '<tr' ) ) {
|
if ( -1 !== r.indexOf( '<tr' ) ) {
|
||||||
@ -287,13 +288,15 @@ inlineEditPost = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
revert : function(){
|
revert : function(){
|
||||||
var id = $('table.widefat tr.inline-editor').attr('id');
|
var $tableWideFat = $( '.widefat' ),
|
||||||
|
id = $( '.inline-editor', $tableWideFat ).attr( 'id' );
|
||||||
|
|
||||||
if ( id ) {
|
if ( id ) {
|
||||||
$( 'table.widefat .spinner' ).removeClass( 'is-active' );
|
$( '.spinner', $tableWideFat ).removeClass( 'is-active' );
|
||||||
|
$( '.ac_results' ).hide();
|
||||||
|
|
||||||
if ( 'bulk-edit' === id ) {
|
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();
|
$('#bulk-titles').empty();
|
||||||
$('#inlineedit').append( $('#bulk-edit') );
|
$('#inlineedit').append( $('#bulk-edit') );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user