Make WordPress Core

Changeset 34064


Ignore:
Timestamp:
09/11/2015 11:33:43 PM (11 years ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

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

    r33016 r34064  
    269269                        function(r) {
    270270                                $( 'table.widefat .spinner' ).removeClass( 'is-active' );
     271                                $( '.ac_results' ).hide();
    271272
    272273                                if (r) {
    … …  
    288289
    289290        revert : function(){
    290                 var id = $('table.widefat tr.inline-editor').attr('id');
     291                var $tableWideFat = $( '.widefat' ),
     292                        id = $( '.inline-editor', $tableWideFat ).attr( 'id' );
    291293
    292294                if ( id ) {
    293                         $( 'table.widefat .spinner' ).removeClass( 'is-active' );
     295                        $( '.spinner', $tableWideFat ).removeClass( 'is-active' );
     296                        $( '.ac_results' ).hide();
    294297
    295298                        if ( 'bulk-edit' === id ) {
    296                                 $('table.widefat #bulk-edit').removeClass('inline-editor').hide().siblings('tr.hidden').remove();
     299                                $( '#bulk-edit', $tableWideFat ).removeClass( 'inline-editor' ).hide().siblings( '.hidden' ).remove();
    297300                                $('#bulk-titles').empty();
    298301                                $('#inlineedit').append( $('#bulk-edit') );
Note: See TracChangeset for help on using the changeset viewer.